Click to See Complete Forum and Search --> : C++ code migration to VC++.net


nadz
May 26th, 2006, 06:32 AM
I have coded few C++ classes which are command
based. I just want that the GUI which I made
with windowforms using vc++.net would communicate with
this code. So the functions which I was running from command
prompt can be GUI based.
When I copy my cpp file into vc++.net cpp file
compiler starts complaining about preprocesser and so
many other errors.
I have change the project properties and added the library path.
when I compile the porject it complains inside those headers files and is giving errors. If I compile the file alone it gives error : fatal error C1010: unexpected end of file while looking for precompiled header directive.

I used Dev Bloodshed C++ to write the c++ coding? Are there libraries non-Standard? How can I fix the problem?
Help required.
Many Thanks.
nadz

cilu
May 26th, 2006, 04:46 PM
Your project is set to be build with precompiled headers, in which case you should have a stdafx.h/stdafx.cpp pair of file in your project folder, and you should include, as first file in every .cpp the stdafx.h file.

However, you can turn it off from Project Properties > C/C++ > Precompiled Headers > Create/Use Precompiled Headers, and set the option to "Not using precompiled headers".