Visual Studio issue...maybe?

This is a discussion on Visual Studio issue...maybe? within the C++ Programming forums, part of the General Programming Boards category; A couple of years ago, I wrote my first few C++ programs with Dev-C++. My brother tested them out on ...

  1. #1
    Registered User
    Join Date
    May 2007
    Posts
    27

    Visual Studio issue...maybe?

    A couple of years ago, I wrote my first few C++ programs with Dev-C++. My brother tested them out on his old Compaq, and they worked fine. At some point I upgraded to Visual C++ and ultimately to Visual Studio 2008. One thing I noticed was that the programs I compiled on Visual Studio do not work on his Gateway PC......when he tries to run the .exe file, he gets a "Cannot run application because side by side configuration is incorrect. See application log for details." Not sure if that is the exact text, but the side by side configuration and application log remarks I know he saw. I sent one of my old Dev-C++ .exe's to his Gateway and it worked fine. Any of the programs I compile on either of my computers (both are running Visual Studio) work fine on both computers.

    What I do not understand is what that error message means or what we can do to deal with it. Any ideas?

  2. #2
    Registered User hk_mp5kpdw's Avatar
    Join Date
    Jan 2002
    Location
    Northern Virginia/Washington DC Metropolitan Area
    Posts
    3,788
    I'm guessing it probably has to do with the way you've linked the final executable. In your Visual C++ configuration you've probably got it set up to do dynamic library linking instead of static linking so on your machine it works because the proper libraries have been installed (during the course of you installing Visual C++ itself) and the computer knows where they are. On your friends computer, he doesn't have these libraries and your executable that you've sent him can't find them. You basically need to create a completely stand-alone version of the executable... one that doesn't rely on something your friend might not have installed on his machine. You're friend might also be able to download/install the Visual C++ runtime libraries (that might work) or Visual C++ to get the executable working.

    [edit]
    One of the things you can check is in your project's properties (Alt+F7 or Project->Properties from the menu or right-click on the project in the solution explorer window and go to properties). In the left hand side of the window that pops up, expand "Configuration Properties"->"C/C++", then select/highlight "Code Generation". Then, on the right look for something that says "Runtime Library". The selection there probably needs to say either "Multi-threaded (/MT)" or "Multi-threaded Debug (/MTd)" and not "Multi-threaded Debug DLL (/MDd)" or "Multi-threaded DLL (/MD)". You don't want either of those DLL versions, you want the ones without the DLL reference in them. There might also be something under "Configuration Properties"->"Linker" that you need to check on but I can't remember right now. Try rebuilding the project after making those changes and then resending him the EXE and have him try to run it.
    [/edit]
    Last edited by hk_mp5kpdw; 12-30-2008 at 08:11 PM.
    "Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
    -Christopher Hitchens

  3. #3
    Captain Crash brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,158
    Quote Originally Posted by DarkMasterBosel View Post
    "Cannot run application because side by side configuration is incorrect. See application log for details."
    You're probably trying to use the debug version -- use a release version instead.
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

  4. #4
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,170
    Can be due to one of the following reasons:
    1) You are using a Debug build. See the drop-down menu at the top and select Release.
    2) The target computer does not have the Visual C++ 2008 runtime installed. Install it (can be found on Microsofts homepage).
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.
    For information on how to enable C++11 on your compiler, look here.
    よく聞くがいい!私は天才だからね! ^_^

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. more then 100errors in header
    By hallo007 in forum Windows Programming
    Replies: 20
    Last Post: 05-13-2007, 08:26 AM
  2. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 04:45 PM
  3. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 12:13 AM
  4. load gif into program
    By willc0de4food in forum Windows Programming
    Replies: 14
    Last Post: 01-11-2006, 09:43 AM
  5. Learning OpenGL
    By HQSneaker in forum C++ Programming
    Replies: 7
    Last Post: 08-06-2004, 08:57 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21