Jump to content
  • Advertisement
Sign in to follow this  
rpstaekwondo

visual c++

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

alright, i have been using visual c++ for like a month, and i never figured this out. how do i publish the application so i can open the application myself without having to open it then debug it?

Share this post


Link to post
Share on other sites
Advertisement
The built application is stored in Debug or Release directory. Where these folders are depends on the version of visual studio that you are using, but they are somewhere inside the solution directory.

Deploying an application takes a lot more work, i would suggest making sure that it works when run from the Debug or Release folder before you consider distributing it using an installer or some such.

Share this post


Link to post
Share on other sites
I am a bit unclear as to what you want to do.

Do you mean:

- Run the game from the developement directory without having to use Visual Studio?

- Distribute your application with an installer?

Share this post


Link to post
Share on other sites
Quote:
Original post by Dave
The built application is stored in Debug or Release directory. Where these folders are depends on the version of visual studio that you are using, but they are somewhere inside the solution directory.

Deploying an application takes a lot more work, i would suggest making sure that it works when run from the Debug or Release folder before you consider distributing it using an installer or some such.

Excellent explanation but here's some additional clarification which may help from a Visual Studio perspective:

1) When building a final release version look up at the menu bar where the "Run" button is. There should be a dropdown beside this which reads "Debug". Change this value to "Release" and build the application.

2) Navigate to your projects folder and you should have a sub-folder named "Release". Within this folder will be your final .exe (or DLL or w/e you built) which you can then double-click just like any other Windows application.

When you build a debug version this cannot be run on a non-development machine as the required run-time libraries will not be available and as a result the application will crash.

Share this post


Link to post
Share on other sites
Not if you include the appropriate DLLs. Some of the demo executables of graphics engines are debug versions. Or at least if you build the source code you get a debug version by default unless you explicitly set it to release.

But normally there would be absolutely no reason at all to want to distribute a debug version of anything. And it's slightly more complicated than just finding the *.exe and running it even for the release version.

You also need ALL the resources that the application uses. Such as graphics, geometries, scripts, third party DLLs etc.

m0ng00se

Share this post


Link to post
Share on other sites
Quote:
Original post by m0ng00se
Not if you include the appropriate DLLs.

And by doing so you would be committing copyright infringement, at least if you are using Visual Studio. According to Microsofts licensing terms, you are not allowed to distribute debug runtimes.

Share this post


Link to post
Share on other sites

"And by doing so you would be committing copyright infringement"

Thanx for that. I didn't know that. Mind you my whole computer is a copyright infringement.

m0ng00se

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!