VC6 newbie question

Hi all,

I need a bit help with VC6++ (SP3). I have got a little program (one *.c and one *.h file) which essentially contains only macro definitions. There are of course enough code lines to make it compiling but what I'm basically after is the output from the preprocessor so I get the source code AFTER all definitions have been expanded. How do I do this?

Ciao, Mike
LVL 10
LischkeAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jkrCommented:
Set the /P (Preprocess to a File) or /E (Preprocess to stdout) compiler option.

You can do this in your project's settings or by using the command line version of the compiler, e.g.

cl myfile.c /E > myfile.out

or

cl myfile.c /P (results in myfile.i)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
LischkeAuthor Commented:
Ein "A" für die schnelle Reaktion. Danke Dir wie verrückt :-)

Ciao, Mike
0
jkrCommented:
Kein Problem! ;-)
0
jkrCommented:
Ach ja, so rein aus Neugier: Wo in D steckst Du denn? Schwabenland hier (obschon ich ja eigentlich Bayer in der Diaspora bin... ;-)
0
LischkeAuthor Commented:
Muenchen, aber ebenfalls in der Diaspora weil eigentlich Thueringer... (siehe auch www.lischke-online.de).

Ciao, Mike
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C++

From novice to tech pro — start learning today.