Creating an independent exe file c++.net

Rafaelzan

New member
Joined
Jan 20, 2004
Messages
2
Hello everybody
I made a c++ program which compiles successfully. and
now i want to make an exe which will work on another
computer which doesnt have the .net env installed.
I noticed that there is an exe file in the debug directry.
I happily copied it to a disk and tested it on another computer and got an error message that some files are missing.
How can i do it right?
Please help.
Rafael:confused:
 
Did you use Managed Extenisons? If yes, then the client computers must have the Framework. If you used the compiler to create a normal Win32 exe then the program should run fine given that all the dependencies are there.
 
I made simple a dos program. how can i make sure that the build
is not using any special resources which need the .NET
framework?
Thanks
Rafael
 
If you just selected the C++ Console application (.Net) template then by default it does use the .Net Framework.
If you went for a Win32 console project that doesnt.

If you need to check - bring up the project properties and under configuration properties -> general you shoul find an entry for Managed Extensions.

If this is set to false then the framework is not required. However you may still need to deploy C runtime / MFC runtimes depending on other options.
 
Back
Top