Volleynerd Knowledge Base

Wednesday, May 01, 2002


Preprocess to File


In VS6, add /P to the command line build options in the project.dsp file for the given file. Find the file in the list and put # ADD CPP /P after the file and before the "end source file" comment. You have to do this by hand in an editor, then load the project in VS6 (or do it behind the IDE's back and it will warn you that it's changed and offer to reload -- cool). This generates a FileName.i file in the same directory as your source.

In VS7, apparently there is a setting under Project Properties, C/C++ folder, Preprocessor, Generate Preprocessed File




Comments: Post a Comment

Home