Porting files error...
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
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. ~
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement