Sign in to follow this  
Myotis

Exporting a project on another computer

Recommended Posts

Hi, I would like to know how to export a project you create on Visual Studio on another computer. Which of the project folders should I take ? Will the .exe work without having to compile again ? Thanks.

Share this post


Link to post
Share on other sites
The simplest compiled program will be standalone: you only need the executable file. However, if you use any file resources (textures, database etc.) then you'll need to provide them too, either as separate files or packed as a resource in the exe.

If you link to any libraries, you'll need to make sure the target machine has access to them. One way to do this is to static-link (to the the .lib file). This way the object code will be included in the exe, though you can end up with a lot of bloat. The alternative is to dynamically link (to the DLL). Any libraries that you dynamically link to will need to be on the target machine, which will often mean including them in your distribution. However, most common and standard libraries come with the operating system. A good rule of thumb is that if the DLL is in your system32 directory then it will likely be present on the target machine and won't need to be distributed.

Of course, there are many exceptions and intricacies, but this should get you started.

Regards
Admiral

Share this post


Link to post
Share on other sites

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