Jump to content
  • Advertisement
Sign in to follow this  
AlexNHS

Getting a program to compile so that it is NOT using .Net

This topic is 4496 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
Advertisement
Hey,

If you are writing native C++ then they will be compiling without the .NET framework.

Dave

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
That's the wierd thing though. I did create a win32 project, but it is only working on machines with .Net 2.0 installed.

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?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Also, under your project properties > General, ensure that "Common Language Runtime support" is set to "No Common Language Runtime support"...

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!