How to port c to c++(MFC)?
Posted on 1999-01-14
I created a MFC application, but now i need to reuse some function that i previously done in c. What should i do if i want to include the previous *.c files.
I have included aaa.c and aaa.h into my MFC workspace. In the aaa.h i use extern "C" to cover the prototype of my c function in aaa.c.
When i build the exe, it returns me an error code i.e.
"Fatal Error C1010: unexpected end of file while looking for precompiled header directive". This error message comes out when the compiler try to compile aaa.c.
I already check the help file regarding this message, unfortunately i don't understand what it try to say, and i also cann't find any solution to solve this problem.