unable to locate MSVCP80D.dll

A

Abubakar

Hi,

I'm using vs2k5 vc++ (native/unmanaged). I just took a separate copy of a
project from source control (vss) and after fixing its dependencies build it
and it builds fine. But when I try to run the exe it reports the following
strange message:
---------------------------
myapp.exe - Unable To Locate Component
---------------------------
This application has failed to start because MSVCP80D.dll was not found.
Re-installing the application may fix this problem.
---------------------------
OK
---------------------------

My previous project runs just fine, but i dont know y is the new copy not
able to locate the dll mentioned. How do i fix it?

Regards,

-ab.
 
C

Carl Daniel [VC++ MVP]

Abubakar said:
Hi,

I'm using vs2k5 vc++ (native/unmanaged). I just took a separate copy
of a project from source control (vss) and after fixing its
dependencies build it and it builds fine. But when I try to run the
exe it reports the following strange message:

Are you trying to run your application on a computer that doesn't have
VC2005 installed? That would seem to be the most likely cause of your
error.

MSVCP80D is the debug C++ standard library. It's installed by with VC++
installer and won't exist on any machine that doesn't have VC 2005
installed.

If you are trying to run your app on a non-development machine, you need to
do a Release build instead of a debug build, and you may need to install the
C++ runtime library DLLs on the machine (if it's got .NET 2.0 installed,
then they're already there). There's a program included in your VC++
installation called vcredist_x86.exe that can be used to install the runtime
libraries on other machines.

On the other hand, if you're having this trouble on the machine where VC++
is installed, then it sounds like your installation is damaged in some way,
because MSVCP80D definitely should be there.

-cd
 
A

Abubakar

I'm running it on my development machine. As I said the other project, which
is basically the same as this one, is running fine. I just took another copy
of the same project from vss and now after building it doesnt run and gives
the error i mentioned. The MSVCP80D.dll is located in my pc in the following
folder:
F:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c

-ab.
 
A

Abubakar

So now to just run my application anyway, I have copied msvcp80d.dll and
msvcr80d.dll from the
F:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c
folder to my *.exe path and ran the application only to get the following
message:

---------------------------
Microsoft Visual C++ Debug Library
---------------------------
Debug Error!

Program: E:\app\Debug\myapp.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 Side-by-Side
Assemblies" topic in the product documentation.



(Press Retry to debug the application)
---------------------------
Abort Retry Ignore
---------------------------

Does this message give u any clue to what must be wrong? Maybe changing some
project properties will solve the problem?

-ab.
 
S

SvenC

Hi Abubakar,

Abubakar said:
Hi,

I'm using vs2k5 vc++ (native/unmanaged). I just took a separate copy of a
project from source control (vss) and after fixing its dependencies build
it and it builds fine. But when I try to run the exe it reports the
following strange message:

Embed the manifest: in both Release and Debug project properties:

Configuration > Manifest Tool > Input Output > Embed manifest = True

Rebuild and it should work.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top