Getting a program to compile so that it is NOT using .Net
I have written a few small programs in C++ using Microsoft Visual Studio 2005. Everything always runs fine on my computer and the computers of anyone who has .Net 2.0 installed, but I want the programs to compile without the need for .Net. I have googled it and searched the board but haven't foung anything yet.
Thanks for your time.
Don't create a managed project. Create a win32 application, or win32 console application project.
You might have additional problems, though, if you've built your application in Debug mode, and the other system doesn't have the debug runtime.
Yet another problem is that you DID build in Release mode, but you didn't deploy the VC8 runtime correctly. This is trickier if you've got the Express edition, but it can be done.
You might have additional problems, though, if you've built your application in Debug mode, and the other system doesn't have the debug runtime.
Yet another problem is that you DID build in Release mode, but you didn't deploy the VC8 runtime correctly. This is trickier if you've got the Express edition, but it can be done.
That's the wierd thing though. I did create a win32 project, but it is only working on machines with .Net 2.0 installed.
Could you explain that? What would I need to do to check if that is what is causing the problems?
Quote:Original post by RDragon1Yet another problem is that you DID build in Release mode, but you didn't deploy the VC8 runtime correctly. This is trickier if you've got the Express edition, but it can be done.
Could you explain that? What would I need to do to check if that is what is causing the problems?
People are reporting an error saying something along the lines of:
The application has failed to start because the configuration is incorrect. Reinstalling the application may help fix this problem.
The application has failed to start because the configuration is incorrect. Reinstalling the application may help fix this problem.
Also, under your project properties > General, ensure that "Common Language Runtime support" is set to "No Common Language Runtime support"...
Quote:Original post by AlexNHS
People are reporting an error saying something along the lines of:
The application has failed to start because the configuration is incorrect. Reinstalling the application may help fix this problem.
Yup, that sounds like a symptom of not having the runtime installed on their machine.
Are you using the express version of visual studio?
Quote:Original post by AlexNHS
Yeah, I checked that already. And no I'm not using the express version.
Excellent.
Then check here for the runtime installer:
\Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages\vcredist_x86
In that directory, you should see a vcredist_x86.exe - run that on the other machines to install the runtime.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement