Thread: VC 2005 win 32 app error.

  1. #1
    Android geek@02's Avatar
    Join Date
    Mar 2004
    Location
    Kurunegala Colony, Sri Lanka, Sri Lanka
    Posts
    470

    VC 2005 win 32 app error.

    Hi

    I've created this win32 app with VC 2005 inside my Win 7 machine, and tried to run the exe file on my other XP machine. But when i try to execute the program it says: 'Appliction.exe could not be started bcos it is not configured properly.' And says to reinstall. But when i create the same app with VC 6, it could be run on any machine. So whats the problem with the configuration of the app built with VC 2005?

    Thx for any input.
    GameJolt: https://gamejolt.com/@KasunL
    Game Development Youtube:
    https://is.gd/XyhYoP
    Amateur IT Blog: http://everything-geeky.blogspot.com/



    (and, sorry for my amateur English)

  2. #2
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,195
    Probably a setting in the solution. What type of solution are you starting with in VS2005?

  3. #3
    Android geek@02's Avatar
    Join Date
    Mar 2004
    Location
    Kurunegala Colony, Sri Lanka, Sri Lanka
    Posts
    470
    It's just a media app playing sound files. No databases or anything. Didn't use .net or MFC libs, just win32 programming. Anyway to fix it?
    GameJolt: https://gamejolt.com/@KasunL
    Game Development Youtube:
    https://is.gd/XyhYoP
    Amateur IT Blog: http://everything-geeky.blogspot.com/



    (and, sorry for my amateur English)

  4. #4
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,195
    Quote Originally Posted by abachler View Post
    Probably a setting in the solution. What type of solution are you starting with in VS2005?
    What type of solution are you starting with in VS2005? I don't care what it is trying to do, I need to know what its base type is.

    Win32
    Win32 Console
    Empty Project
    Makefile Project
    CLR Class Library
    CLR Empty Project
    CLR Console Application
    Windows Forms Application

  5. #5
    Android geek@02's Avatar
    Join Date
    Mar 2004
    Location
    Kurunegala Colony, Sri Lanka, Sri Lanka
    Posts
    470
    started as a Win32 project.
    GameJolt: https://gamejolt.com/@KasunL
    Game Development Youtube:
    https://is.gd/XyhYoP
    Amateur IT Blog: http://everything-geeky.blogspot.com/



    (and, sorry for my amateur English)

  6. #6
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,195
    and it compiles with no warnings or errors?

  7. #7
    Android geek@02's Avatar
    Join Date
    Mar 2004
    Location
    Kurunegala Colony, Sri Lanka, Sri Lanka
    Posts
    470
    ya no errors. it runs on the win 7 machine which it has been built, but not on the xp machine. but when i rebuilt it using VC6, then it runs on both machines.
    Last edited by geek@02; 12-21-2009 at 05:44 AM.
    GameJolt: https://gamejolt.com/@KasunL
    Game Development Youtube:
    https://is.gd/XyhYoP
    Amateur IT Blog: http://everything-geeky.blogspot.com/



    (and, sorry for my amateur English)

  8. #8
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,195
    Have you tried compiling it on the XP machine? Are you using the static or DLL runtimes.

  9. #9
    Android geek@02's Avatar
    Join Date
    Mar 2004
    Location
    Kurunegala Colony, Sri Lanka, Sri Lanka
    Posts
    470
    ya compiled it in XP with VC6 and it runs fine after doing so. The problem seems to be something with VS2005. Use DLL runtimes.
    GameJolt: https://gamejolt.com/@KasunL
    Game Development Youtube:
    https://is.gd/XyhYoP
    Amateur IT Blog: http://everything-geeky.blogspot.com/



    (and, sorry for my amateur English)

  10. #10
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    VS2005 and 2008 requires runtime. You can download this from Microsoft's homepage.
    That is, unless you compile with the static libraries which means your executable will get bigger.
    It will work on your dev machine since it already has the runtime installed, but other machines...
    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.

  11. #11
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,195
    Yeah, that's what I was getting to. If you plan to distribute this application, you should link with the static libraries anyway, as most (99%) users will not have them installed, and although they are available for installation, most people will find it annoying. It also can cause bugs if you are depending on some behavior that MS changes in a new version of the runtime. If you are statically linked it will always give you the same results.

    It realyl sounds like it was an issue with not having the runtime installed on the XP machine, that is until you installed VS2005 on it in order to compile it.

  12. #12
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    On the other hand, you can force the installer to install the dependencies. Don't worry - you will be safe. The runtime is specifically made to make sure they don't break stuff when installing it, even if they update it.
    Also, installing the runtime is a one-time operation. So you do it once and nevermore.
    Nevertheless, what you want to do is up to you.
    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.

  13. #13
    Android geek@02's Avatar
    Join Date
    Mar 2004
    Location
    Kurunegala Colony, Sri Lanka, Sri Lanka
    Posts
    470
    Thanxxx guys for the help

    what if i use only VC6 to build win32 apps? when im gonna build like .net apps i can use VS2005 and higher right.
    GameJolt: https://gamejolt.com/@KasunL
    Game Development Youtube:
    https://is.gd/XyhYoP
    Amateur IT Blog: http://everything-geeky.blogspot.com/



    (and, sorry for my amateur English)

  14. #14
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    No, no, no. Avoid VC6 like the plague. It's old and non-standard.
    Use VS2005 for your apps. All of them. C, C++, C#, whatever. If you don't like to install the runtime, then simply linking with the static libraries.
    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.

  15. #15
    Android geek@02's Avatar
    Join Date
    Mar 2004
    Location
    Kurunegala Colony, Sri Lanka, Sri Lanka
    Posts
    470
    ok tnx.
    i did the static linking and now it runs fine. i wanted to build the app so the users wont have to download additional files to run it (so i tend to avoid .net and mfc). though now the 100kb executable has become a 1mb one.
    GameJolt: https://gamejolt.com/@KasunL
    Game Development Youtube:
    https://is.gd/XyhYoP
    Amateur IT Blog: http://everything-geeky.blogspot.com/



    (and, sorry for my amateur English)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 08:18 PM
  2. Quantum Random Bit Generator
    By shawnt in forum C++ Programming
    Replies: 62
    Last Post: 06-18-2008, 10:17 AM
  3. Using VC Toolkit 2003
    By Noobwaker in forum Windows Programming
    Replies: 8
    Last Post: 03-13-2006, 07:33 AM
  4. Please Help - Problem with Compilers
    By toonlover in forum C++ Programming
    Replies: 5
    Last Post: 07-23-2005, 10:03 AM
  5. Resource ICONs
    By gbaker in forum Windows Programming
    Replies: 4
    Last Post: 12-15-2003, 07:18 AM