Jump to content
  • Advertisement
Sign in to follow this  
Vanz

Running VC++ 2008 application other computers

This topic is 3669 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

This probably has been asked already but I couldn't find it... so sorry if this is a duplicate... I'm compiling my program using VC++ 2008 Express edition (using Directx 9.0c sdk) yet when I try to run it on another computer with DirectX 9.0c installed I get the following message: "This application has failed to start becasue the application configuration is incorrect. Reinstalling the application may fix this problem" If I install the VC++ 2008 compiler on this other machine then the executible runs fine... I'm guessing it's missing some dll's or something, how do I get this .exe file to run by itself, I really don't want to ask users to install something else like .Net Framework... my program is made up of pretty basic c++ and directx calls only... Thanks, rh

Share this post


Link to post
Share on other sites
Advertisement
Sounds like you need to switch your build configuration to "Release" mode for it to work. Normally it's located at the top of the tool bar in MSVC. This will compile with separate libraries which are good for distribution.

Share this post


Link to post
Share on other sites
Tried that, same result... compiled to about 1/3 the size though... tried playing with some of the setting that I thought "made sense" but then I started getting other errors and though I should ask first...



Share this post


Link to post
Share on other sites
I am actually having this same problem, but I am using Visual Studio 2005 SP1. I to would also like to know how to do this.

I am building in release mode, I have told the other person to install the VS redist and it is still failing. The only way it can run is by have VS2005 installed.

Any help would be appreciated.

Share this post


Link to post
Share on other sites
You need to have the Visual Studio runtimes installed on the target machine. Linky. Alternatively, you can embed them in your executable, by going to project settings (Alt+F7) -> Configration Properties -> C/C++ -> Code Generation, and changing "Runtime Library" from "Multi-threaded DLL (/MD)" to "Multi-threaded (/MT)". That's not usually a good idea for applications though, since it makes your exe much bigger, and also means that if there's any security problems found in the CRT which are patched via Windows Update, your application won't benifit from them.

Share this post


Link to post
Share on other sites
1. Compile in release

2. You need to install the same or newer DirectX redist. It's in the sdk folder (C:\Program Files\Microsoft DirectX SDK (November 2008)\Redist), if you installed it.

3. Install the same vc redist dans the version you compiled it. If you used VC2008 with SP1, you need the redist vc2008 with SP1. Redist for VC2008 won't work. Same if you installed the feature pack. You can get them all from microsoft. You search for vcredist.

It could be also be a thing caused by the express edition, to prevent people from releasing apps. [sad]

Share this post


Link to post
Share on other sites
Hey thanks Evil Steve, you really that evil?

Not a good idea? So how do you guys generally deal with this?? You ask all the users to install this seperate program patch first? Seems like not benefiting from the update would be the way to go, no?

Thanks,

rh

Share this post


Link to post
Share on other sites
Quote:
Original post by K1nG Gr4H4m

It could be also be a thing caused by the express edition, to prevent people from releasing apps. [sad]


I want to release my app, what should I be using? I thought this was meant for free releases...

Do I need to buy VC++ 2008? Couldn't see it at Amazon....

http://www.amazon.com/s/ref=nb_ss_gw_0_4?url=search-alias%3Daps&field-keywords=vc%2B%2B+2008&sprefix=vc%2B%2B

Share this post


Link to post
Share on other sites
Ok, I read a bit about the express edition and looks like you can compile and release programs with it, without any problems. It's missing MFC, ATL, 64 bits compiler, OpenMP and a resource editor vs the professional edition.

You can distribute your app freely without problems, but I have no idea, if you can make money out of it. It must be somewhere in the EULA...

For Amazon, you can search for "Visual Studio 2008". But looks like you should be fine with the express.

Share this post


Link to post
Share on other sites
You can distribute and sell programs made with Express Editions. On a similar note, you cannot sell programs made by the student editions.


Are you using any external libraries? Some of them cause issues if you compile your code with different libraries than it was compiled with (that is, static vs. dll, what Evil Steve described). At least that was my problem for a long time.

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!