Sign in to follow this  

how can i make .exe file stand alone?

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

sorry if question is too weird. i don't know how to call that's why i cannot search on internet. well, i made a game and when i complied in debug mode, i got game.exe. i can't use game.exe alone, i need to put game.exe in the same folder which game.exe's material files (sounds, graphic) is. i just want to game.exe can play without need to put material stuff with. so i can distributor on internet to get comment for improvement. i want all material set in game.exe not seperate place like i always did. can somebody help?

Share this post


Link to post
Share on other sites
-Read up on resources on MSDN. That said, it is very common for even commercial games to load resources from external files - this way, if you update either the program or a single resource, you don't have to do a huge compilation. Do take into account that the Express editions of Visual Studio do not include the resource editor.

-Don't publish executables compiled with debug settings. Usually, debug libraries need a corresponding debug runtime, and people without the same development environment as you don't have them.

-Note that you still need to distribute the runtime of the language you developed your app with. Even native C++ requires a runtime.

-Consider using a proper installer instead of x-copy deployment (your current style).

Share this post


Link to post
Share on other sites
Quote:
Original post by Nik02
-Read up on resources on MSDN. That said, it is very common for even commercial games to load resources from external files - this way, if you update either the program or a single resource, you don't have to do a huge compilation. Do take into account that the Express editions of Visual Studio do not include the resource editor.

-Don't publish executables compiled with debug settings. Usually, debug libraries need a corresponding debug runtime, and people without the same development environment as you don't have them.

-Note that you still need to distribute the runtime of the language you developed your app with. Even native C++ requires a runtime.

-Consider using a proper installer instead of x-copy deployment (your current style).


i don't get this "x-copy deployment"?? what is it?
and if i publish in release form, it gonna be better?
i use visual studio 2005 so it may have resource editor but i never use.....
anyway, i still want to know how to do.
thanks for reply

Share this post


Link to post
Share on other sites
X-copy deployment is a deployment style in which you just copy the executable and all its resources from one directory to another. The term x-copy stems from the MS-DOS command xcopy.exe which performed a recursive copy of a file system directory. Nowadays, when you copy the contents of a directory (files and subdirectories) by using the Windows Explorer, it basically does the same thing. This deployment style is simple (no dependency system) but not very robust (no dependency system) - hence, I recommended making a proper installer for your app.

If you're going to publish your app to someone who doesn't have the same development environment as you, your only choice is to publish a release build. Others cannot likely run your app built in debug mode.

If you want to learn how to use embedded resources with your executables, you just need to do some studying and preferably try out how it works while at it. This is not the most difficult thing you can do with Visual Studio. All the documentation about the topic is available in MSDN. And with a little Googling, you can surely find some tutorials.

Share this post


Link to post
Share on other sites

This topic is 2813 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this