Results 1 to 4 of 4

Thread: Creating portable executable with Visual Studio

  1. #1
    Join Date
    Feb 2009
    Posts
    56

    Creating portable executable with Visual Studio

    Using Visual Studio I created a program in C that uses opengl and opencv libraries and I would like to make it available as an executable without having to be compiled.

    I tried to create a Setup project type but I really do not understand how to get what I need.

    Can someone give me a hand?

  2. #2
    Join Date
    Oct 2008
    Posts
    167

    Re: Creating portable executable with Visual Studio

    Using Visual Studio I created a program in C that uses opengl and opencv libraries and I would like to make it available as an executable without having to be compiled.

    I tried to create a Setup project type but I really do not understand how to get what I need.
    You can even make the exe with its associated dll, remember to fill out the modalities "Release."
    If you want to create un'installer you must use the "Setup" but honestly I never tried.

  3. #3
    Join Date
    Feb 2009
    Posts
    56

    Re: Creating portable executable with Visual Studio

    I did exactly that and in my computer but of course it works in other computers, no. Even with the same operating system.

  4. #4
    Join Date
    Jan 2006
    Posts
    211

    Re: Creating portable executable with Visual Studio

    right click on project, Properties, select Configuration in the Release configuration, then go to C / C + +, Code Generation and set Runtime Library to Multi-threaded (/ MT). the final executable will be some big but you will have more removed from the dependency of the runtime version of Visual C + +.

    alternatively you should make it clear that Visual Studio generates when the Manifest File must put the directive that sets the dependence with an old version of the runtime, but I do not know how to do; eliminates dependence and go quiet.

    PS: the whole problem exists only if the final program must run on XP, Vista and Seven have already the latest version of the runtime.

Similar Threads

  1. Replies: 2
    Last Post: 16-02-2011, 01:49 PM
  2. Replies: 4
    Last Post: 29-01-2010, 02:28 AM
  3. Compare Visual Studio 2010 and Visual Web Developer Express
    By Zacharia in forum Software Development
    Replies: 5
    Last Post: 28-01-2010, 03:27 AM
  4. Difference between Visual studio 2005 and Visual studio 2008
    By RohanS in forum Software Development
    Replies: 3
    Last Post: 12-06-2009, 10:48 AM
  5. Visual Studio 2008 - Creating DLL
    By Hemal Das in forum Software Development
    Replies: 3
    Last Post: 26-03-2009, 02:36 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •