I have been using the Borland BCC32 compiler and love the CPP32 line numbering tool. Now I want to switch to the cl.exe compiler. Is there a tool like CPP32 in the Microsoft system?

you could use the following compiler switches.
/C preserve comments during preprocessing.
/E copy preprocessor output to standard output (with #line)
/EP copy preprocessor output to standard output (without #line)
/P write preprocessor output to a file.

To set this programmatically, use the VCCLCompilerTool class.
VCCLCompilerTool::GeneratePreprocessedFile property provides the same functionality.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.