C++ code integration with VC++.net
Hi guys,
I have done some coding in C++, and made the GUI using VC++.net.
I am wondering if there is any simple way to integrat my coding into VC++.net.
[161 byte] By [
nadz] at [2007-11-11 8:45:30]

# 1 Re: C++ code integration with VC++.net
What do you mean exactly by "integrating" ? Porting? In that case you can use the same project, as a Win32 GUI app without Managed Extensions and all the Microsoft proprietary nonsense. If you want to port it to .Net you need to use the Managed Extensions (whcih are now being silently withdrawn from the market in favor of a more hideous kludge called C++/CLI, which has little to do wuh C++). In that case, you will need to rewrite certain parts of the application.
Danny at 2007-11-11 21:01:04 >

# 2 Re: C++ code integration with VC++.net
I have coded few C++ classes which are command
based. I just want that the GUI which I made
with windowforms using vc++.net can 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.
Any possible solution.
Thanking you in advance.
Cheers.
nadz at 2007-11-11 21:02:04 >

# 3 Re: C++ code integration with VC++.net
If the code is legal, it should compile fine in .net. If you have a bunch of ifdef's youll need to set up your preprocessor defines. If you used nonstandard libs you have to get those into the compiler, if they will work. Its possible to use old libs that will not work in .net. The bottom line it yes, its possible, but depending on how dependent your code is upon project settings, it may take a bit of work.
jonnin at 2007-11-11 21:03:09 >

# 4 Re: C++ code integration with VC++.net
I have change the project properties and added the library path.
Now 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
nadz at 2007-11-11 21:04:03 >

# 5 Re: C++ code integration with VC++.net
always, always, always turn off pre-compiled headers. Its a project setting, and basically a huge mistake that microsoft cannot admit to and so it remains in the IDE.
jonnin at 2007-11-11 21:05:09 >

# 6 Re: C++ code integration with VC++.net
always, always, always turn off pre-compiled headers. Its a project setting, and basically a huge mistake that microsoft cannot admit to and so it remains in the IDE.
ditto that.. ;)