Closed Thread
Results 1 to 7 of 7

Thread: Visual C++ 2008 compiler question - making contained exe file?

  1. #1
    mholt is offline Newbie
    Join Date
    Jan 2008
    Posts
    27
    Rep Power
    0

    Question Visual C++ 2008 compiler question - making contained exe file?

    I started a project that started out sort of small. I originally developed it in Dev-Cpp (I'm on Windows, of course). Then it grew a bit larger, so I ported it to Visual Studio 2008. The project is completely unmanaged and it is just bare-bones C++ code. The only thing "system-specific" is the header files and libraries I'm using. They are Windows-specific.


    So my question is, in Dev-Cpp, my projects compiled such that all that was required was the .exe file to run it, on XP or Vista. But in Visual C++, while the file size is smaller, the executable does not run, I'm guessing because it does not include proper code into the executable itself.

    It's seriously a small console application - it shouldn't need an install. In fact, for this type of application, I can't use an install. How can I get Visual C++ to include all the necessary code compiled right into that .exe like Dev-Cpp's compiler does? Filesize is not a concern.

    Thanks for any help.

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Join Date
    Mar 2008
    Location
    The North Pole
    Posts
    13,174
    Blog Entries
    13
    Rep Power
    114

    Re: Visual C++ 2008 compiler question - making contained exe file?

    I thought Visual C++ uses managed code? If so, it relies on the .NET Framework for running, and hence must be installed.

    Quote Originally Posted by Jordan View Post
    Good members, like yourself, stick around and post for ages to come!
    Mr. Xav | Blog | Forums

  4. #3
    mholt is offline Newbie
    Join Date
    Jan 2008
    Posts
    27
    Rep Power
    0

    Re: Visual C++ 2008 compiler question - making contained exe file?

    Quote Originally Posted by Xav View Post
    I thought Visual C++ uses managed code? If so, it relies on the .NET Framework for running, and hence must be installed.
    No, I'm not using managed code... at least I'm pretty sure I disabled all sorts of VS-tied things...

    (if this helps explain: code that I write natively in Dev-Cpp that is then ported to VC++ compiles fine in VC++ with the settings I'm using for this project - which is totally unmanaged, I think. Is it possible to disable all this? I'm not using CLR and the libraries are statically linked... (no dll) - does that sound right?)

  5. #4
    FritoBandito is offline Newbie
    Join Date
    May 2008
    Posts
    7
    Rep Power
    0

    Re: Visual C++ 2008 compiler question - making contained exe file?

    Wow i was about to post about the exact same problem. I havent been able to figure it out either but please post when you do.
    Also the framework chosen has nothing to do with it, i thought i would try that shot in the dark.

    I dont know how to change the management like you talked about though.
    Last edited by FritoBandito; 05-22-2008 at 05:18 AM.

  6. #5
    FritoBandito is offline Newbie
    Join Date
    May 2008
    Posts
    7
    Rep Power
    0

    Re: Visual C++ 2008 compiler question - making contained exe file?

    well i found one solution ..
    Download

    switch to MSVC2005 express

  7. #6
    mholt is offline Newbie
    Join Date
    Jan 2008
    Posts
    27
    Rep Power
    0

    Re: Visual C++ 2008 compiler question - making contained exe file?

    Quote Originally Posted by FritoBandito View Post
    well i found one solution ..
    Download

    switch to MSVC2005 express
    Any particular reason I should use 2005 Express when I'm already using the 2008 Express version?

  8. #7
    Join Date
    Mar 2008
    Location
    The North Pole
    Posts
    13,174
    Blog Entries
    13
    Rep Power
    114

    Re: Visual C++ 2008 compiler question - making contained exe file?

    If you're using 2008 and it works fine, stick with it. There shouldn't be any real reason to downgrade. However, if you want to use extra components such as the XNA Game Library, then they may be specifically designed for 2005, and will not work in 2008.

    Quote Originally Posted by Jordan View Post
    Good members, like yourself, stick around and post for ages to come!
    Mr. Xav | Blog | Forums

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Intermediate Visual Studio - C# Making Use of Visual Basic Namespace
    By chili5 in forum CSharp Tutorials
    Replies: 0
    Last Post: 08-26-2011, 01:53 PM
  2. Nid Help in Making a Report Viewer using Vb 2008
    By edge02 in forum Visual Basic Programming
    Replies: 1
    Last Post: 10-21-2010, 12:23 PM
  3. need help to all of you for making a program in VB-2008
    By rocky_17117 in forum Visual Basic Programming
    Replies: 1
    Last Post: 04-20-2010, 04:06 AM
  4. Replies: 3
    Last Post: 10-03-2008, 03:21 PM

Tags for this Thread

Bookmarks

Posting Permissions

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