Advertisement

Porting files error...

Started by February 09, 2000 10:15 AM
1 comment, last by Someone 24 years, 10 months ago
Hi! Umm... OK! I made a Win32 application and made several data structures using classes. Each class is store in different .h and .cpp files. When I compile it and run, there''s no problem. Now, I''m starting another project and it uses MFC, and I plan to reuse those classes made for the Win32 application. So, I insert them into this new MFC project. However, when I compile them, it gives an error message of "Unexpected end of file while looking for precompiled header instruction". I''ve tried removing all the #include and replacing it with the #include "stdafx.h" for MFC classes, but it still gives the same error. Anyone know how this can be fixed?
Something to try:
Go to Project->Settings. Hit the "C/C++" tab, pull the Category combobox down to "Precompiled Headers", hit the "Not using precompiled headers" button.

If that doesn''t work, you might want to just recreate your classes as empty "Generic Class" files, and then copy/paste from your old files.

-fel
~ The opinions stated by this individual are the opinions of this individual and not the opinions of her company, any organization she might be part of, her parrot, or anyone else. ~
Advertisement
Thanx! Will try that out!

This topic is closed to new replies.

Advertisement