Hello!
I am wondering if it is possible to configure visual studio 2005 to not require a bunch of external dll files to run the exe. Also is there any way to figure out exactly what the external files it needs are
When i try to run an exe on a computer that does not have visual studio 2005 on it, i get the message: "failed to start because the application configuration is incorrect". I have succeded to solve this on some computers by putting a bunch of dll files in the same folders, but it doesn't seem to work on all.

failed to start because the application configuration is incorrect
Rajendra Shekhawat
I have the same problem.
Firstable when I build (for the first time) my project, here is what it's written:
"MSVCRTD.lib(cinitexe.obj) : warning LNK4098: defaultlib 'msvcrt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library".
And when I try to build and run (F5), I have an alert that tells me the same thing as above (failed ...). I've tried to modify the runtime library but it's almost the same thing or worse.
Could you help me and if possible step by step (without forwarding
Thanks,
Florian
Samantha Low
saeidX
As Martyn said above you should check the SxS installation on the other machines. Some DLL's, particularly msvcr80.dll must be loaded through Fusion from the WinSxS directory.
Brian Shafer
Greetings,
In your project properties, go to:
Configuration Properties->C/C++->Code Generation, and change "Runtime Library" to "Multi-threaded (/MT)"
That fixed the problem for me. It makes the .exe a little bigger, but it's worth it.
Kevin
Agson Chellakudam
David T So MSFT
Thanks,
Ayman Shoukry
VC++ Team
mannequin011
SAStumpf
Under Configuration Properties, go under C/C++, then Code Generation, then where you see "Runtime Library", choose "Multi-threaded" or "Multi-threaded Debug", depending on whether you are changing settings for release or debug builds respectively.
Or, a better way would be to leave the settings as they are (i.e. use the DLL based versions of the runtime libraries) and follow the directions I gave in this thread (the post starting with "OK, due to popular demand")
http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=164880&SiteID=1
This way if Microsoft comes out with a security update, your app will take advantage of it immediately, instead of you having to rebuild your app with new libraries.
Mark AC
(BTW, in Express, the Configuration Properties do not include C/C++, then Code Generation and Runtime Library.)
Sandro Rudin
shippee
DEVMGR.DLL MSJAVA.DLL
So, every time i want to try a project build in 2005 on someone elses computer, i now have to run around my hard drive hunting down files that are spread out in strange directories in the hope of finding something that makes it work Isn't there any easy way of getting around this Other than going back to 2004.
CarlW
http://msdn2.microsoft.com/en-us/library/ms235624
Thanks,
Ayman Shoukry
VC++ Team