Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

DLL or MANIFEST problems in VC++

I am making a client server application in VC++ 2005. It compiles correctly with 0 errors.

But when I execute the executable file say GridServer.exe, it gives the following error :

The application has failed to start beacuse MSVCP80D.dll was not found. Reinstalling the application may fix this problem.

Then I searched this file in the C:\Program Files\Visual Studio... folder and got a file with this name. So I copied this file to my "debug" folder where my GridServer.exe was residing. Now on executing the file I get the following error :

The application has failed to start beacuse MSVCR80D.dll was not found. Reinstalling the application may fix this problem.

So I did the same for this .dll file also. Now my .exe file executes properly, but only sometimes. On some occasions a popup window occurs with the message :

Debug Error!
Program : D:\SS\debug\GridServer.exe

R6034
An application has made an attempt to load the C runtime library without using a manifest.
This is an unsupported way to load Visual C++ DLLs. You need to modify your application to build with a manifest.
For more information, see the "Visual C++ Libraries as Shared by Side By Side Assemblies" topic for product documentation.

(Please Retry to debug the application)

Abort Retry Ignore

Now if I press Retry, it gives some address error.
I have seen the MSDN Documentation, but I could'nt understand it.

Info: VC++ is used only as a IDE, the application is a simple WIN32 console type.

Please Reply
Pawan
[1632 byte] By [ppuniversal] at [2007-11-11 10:30:25]
# 1 Re: DLL or MANIFEST problems in VC++
pop the dll you need in to \windows\system32 so you can use your program from anywhere on the computer without problems.

I am not sure about the manifest comment. When the dll is designed for VS & you link in the .lib file and .h file for it, they generally just work! It looks like you are trying to use a different compiler to link in the visual studio baseline compiler libs? If so, you will need to find a howto on the web. I know that MASM examples show how to do this from the assembly perspective (and therefore, in detail!) if you want to look there.
jonnin at 2007-11-11 20:58:45 >