Jump to content
  • Advertisement
Sign in to follow this  
StoneMask

How to export a usable .exe in Microsoft Visual Studio 2010? [Still an issue]

This topic is 2301 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 is one of the more general questions I've asked, so I can't be all super clear to help you help me, lol. But yeah, if I have a project I want to say, pack up and give to somebody so they can check it out, what exactly do I need to package with it? I've tried linking my friend projects, but they've given him this error:

The program can't start because MSVCP100D.dll is missing from your computer

I'm not sure if he just paraphrased that right now, but yeah. Can't really find any results in Google or in the Help portion of MVS.
Thank you!

Share this post


Link to post
Share on other sites
Advertisement
Based on the -D.dll I'm guessing you're giving him a debug build. He's unlikely to have debug versions of the required libraries. Make Sure you're giving him a release build.

Share this post


Link to post
Share on other sites
How do I create a release build? Will the executable run on its own if I make it a release build? And can I still somehow give him a debug build that works?

EDIT: Nevermind. I found it, lol.

But I sent it to my friend, and it tripped one of my checks for an initialization error. Do I also need to include all the image files and .cpp/.h files in with the folder? I have one project that's nothing but a single .cpp file, and it closes after a certain amount of time for some reason without warning. There isn't a point at which it stops, it literally closes at any part of the program after a certain amount of time passes. There aren't any time-based functions in this program, but it still gives my friend this issue. I've never encountered something like this before.

Share this post


Link to post
Share on other sites

But I sent it to my friend, and it tripped one of my checks for an initialization error. Do I also need to include all the image files and .cpp/.h files in with the folder? I have one project that's nothing but a single .cpp file, and it closes after a certain amount of time for some reason without warning. There isn't a point at which it stops, it literally closes at any part of the program after a certain amount of time passes. There aren't any time-based functions in this program, but it still gives my friend this issue. I've never encountered something like this before.

No, you do not need to include .cpp/.h and such files. Most probably your program need MSVC100.DLL or something similar (C/C++ runtime library). I think that compiling your program with static libraries could help (Properties->C/C++->Runtime Library). Or your frined has to install the MSVC runtime - it is freely available from Microsoft.
If your program crashes at random moments, it is most probably memory bug. Finding these in C++ code is hard, as the faulty code can be in completely different place from where the crash happens.
As a starter compile the program in release mode in your computer, run it outside Visual Studio and check whether it crashes in your computer too. Then try to isolate place where the crash happens, by turning features off and on, adding debug printouts etc.
Or buy memory debugger. I do not know, whether there is any free one for Windows - under Linux and Mac there is excellent free tool called Valgrind.

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!