softyan
asked on
How to port c to c++(MFC)?
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.
E.g.
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.
Please help!
E.g.
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.
Please help!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
sorry - 'precomoiled' should of course read ' precompiled' ;-)
ASKER