Compile (?). Visual studio C ++ 2008

There's an app I use on an XP netbook to tune my car. It worked great. Then I needed to do a simple modification (output to STDOUT instead of file), so I got the source from the author.

My netbook has no room for a compiler. I have Visual Studio C ++ 2008 on a Windows 7 desktop. I did the tweaks, compiled and tested on the desktop and it worked fine. So, I copied the executable to the netbook and didn't run

"This application could not be started because the application is not configured correctly. Reinstalling the application may fix this problem."

The original (pre-compiled) exe works fine. To rule out my changes, I compiled the source without mods and it still doesn't work. The executable works fine on machine 7 as well as another Win Vista machine that I tried.

So, obviously something with the XP machine and the way the executable is compiled. I really don't know how it works, so I don't know what to try.

+2


source to share


3 answers


This is because the dependency / DLL compiled into your application does not exist on the platform you are running on.

Open Windows Event Viewer and view the Application log. There will be an entry for the error and the name of the DLL that is missing. Copy / install the DLL to the target platform.



I would suggest that your vc runtime changed with visual studio 2008 and you need to copy the latest version to your target platform. If you don't know where to get the DLL dependencies, post the name here and we can see what we can do about it.

+4


source


A couple of ideas:

As Keith said, this is a DLL / manifest issue.



  • Download Visual Studio 2008 Redistributable (to match the app platform) and install it on your netbook.

  • If that doesn't help: Use Dependency Walker to find out what other DLLs you are missing.

+6


source


You can check your project settings and make sure you are using a statically linked runtime instead of a DLL.

Project Settings, C / C ++ -> Code Generation. Make sure you are using a runtime library that is not a DLL. (So โ€‹โ€‹multithreaded Debug instead of multithreaded DLL Debug, for example).

+2


source







All Articles