473,837 Members | 1,747 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VS2005 Attempt to Run Simple Console App Fails

Two installations of VS 2005 Pro RTM. Same symptom with both.
Simple Win32 Console application compiles fine, but when I attempt to run
(with or without debugging), message appears: failed to find mdvcp80d.dll.
A search reveals the file is present (two instances, 1004 kb each).
Anybody else seen this? Any ideas how to rectify the situation?
Nov 17 '05 #1
10 2861
Ted
It appears that your manifest is not getting embedded properly, or your VC
DLLs are not installed in the correct place.

That file should be in

C:\WINDOWS\WinS xS\x86_Microsof t.VC80.DebugCRT _1fc8b3b9a1e18e 3b_8.0.50727.42 _x-ww_f75eb16c

If you open up your EXE as resources using the resource editor, you should
see a manifest file RT_MANIFEST as 1. It should have references to this
DLL, something like this:

<assemblyIdenti ty type="win32" name="Microsoft .VC80.DebugCRT"
version="8.0.50 608.0"

Ted.

"pvdg42" <pv****@newsgro ups.nospam> wrote in message
news:Oe******** *****@TK2MSFTNG P10.phx.gbl...
Two installations of VS 2005 Pro RTM. Same symptom with both.
Simple Win32 Console application compiles fine, but when I attempt to run
(with or without debugging), message appears: failed to find mdvcp80d.dll.
A search reveals the file is present (two instances, 1004 kb each).
Anybody else seen this? Any ideas how to rectify the situation?

Nov 17 '05 #2
Ted
I should also mention that there also should be a file in:

C:\WINDOWS\WinS xS\Policies\x86 _policy.8.0.Mic rosoft.VC80.CRT _1fc8b3b9a1e18e 3b_x-ww_77c24773

named:

8.0.50727.42.po licy

and there should be a line in there like this:

<bindingRedirec t oldVersion="8.0 .41204.256-8.0.50608.0"
newVersion="8.0 .50727.42"/>

All information provided so far assumes you are using the RTM (i.e.
shipping) version of Visual Studio 2005.

Ted.

"Ted" <te*@t--x.org> wrote in message
news:uT******** ******@TK2MSFTN GP10.phx.gbl...
It appears that your manifest is not getting embedded properly, or your VC
DLLs are not installed in the correct place.

That file should be in

C:\WINDOWS\WinS xS\x86_Microsof t.VC80.DebugCRT _1fc8b3b9a1e18e 3b_8.0.50727.42 _x-ww_f75eb16c

If you open up your EXE as resources using the resource editor, you should
see a manifest file RT_MANIFEST as 1. It should have references to this
DLL, something like this:

<assemblyIdenti ty type="win32" name="Microsoft .VC80.DebugCRT"
version="8.0.50 608.0"

Ted.

"pvdg42" <pv****@newsgro ups.nospam> wrote in message
news:Oe******** *****@TK2MSFTNG P10.phx.gbl...
Two installations of VS 2005 Pro RTM. Same symptom with both.
Simple Win32 Console application compiles fine, but when I attempt to run
(with or without debugging), message appears: failed to find
mdvcp80d.dll.
A search reveals the file is present (two instances, 1004 kb each).
Anybody else seen this? Any ideas how to rectify the situation?


Nov 17 '05 #3

"Ted" <te*@t--x.org> wrote in message
news:u1******** ******@TK2MSFTN GP15.phx.gbl...
I should also mention that there also should be a file in:

C:\WINDOWS\WinS xS\Policies\x86 _policy.8.0.Mic rosoft.VC80.CRT _1fc8b3b9a1e18e 3b_x-ww_77c24773

named:

8.0.50727.42.po licy

and there should be a line in there like this:

<bindingRedirec t oldVersion="8.0 .41204.256-8.0.50608.0"
newVersion="8.0 .50727.42"/>

All information provided so far assumes you are using the RTM (i.e.
shipping) version of Visual Studio 2005.

Ted.

"Ted" <te*@t--x.org> wrote in message
news:uT******** ******@TK2MSFTN GP10.phx.gbl...
It appears that your manifest is not getting embedded properly, or your
VC DLLs are not installed in the correct place.

That file should be in

C:\WINDOWS\WinS xS\x86_Microsof t.VC80.DebugCRT _1fc8b3b9a1e18e 3b_8.0.50727.42 _x-ww_f75eb16c

If you open up your EXE as resources using the resource editor, you
should see a manifest file RT_MANIFEST as 1. It should have references
to this DLL, something like this:

<assemblyIdenti ty type="win32" name="Microsoft .VC80.DebugCRT"
version="8.0.50 608.0"

Ted.


Yes, this is the Visual Studio 2005 Professional Edition RTM, as downloaded
from MSDN.

I installed it on a third PC in my office and have the same behavior from
all three instances.
I have verified the file MSVCP80D.dll exists in the location you specify.
However, I also find a second copy of the file at:

D:\Program Files\Microsoft Visual Studio 8\VC\redist\Deb ug_NonRedist\x8 6
\Microsoft.VC80 .DebugCRT.

(Note: D: is the install drive, and the OS partition here.)
Could the second copy be causing the problem?
I have also verified the entry you cited in the 8.0.50727.42.po licy file,
which is found in the location you specified.
However, when I looked in the debug folder for the .exe, there is no .exe to
be found, even though the output from build/rebuild shows 0 errors, 0
warnings, there is a link entry referring to the build log, where I find a
note indicating the .exe could not be found or created:

Compiling manifest to resources...
Linking...
LINK : E:\CIT1173\VS20 05Test\Debug\VS 2005Test.exe not found or not built by
the last incremental link; performing full link
Embedding manifest...
Results
Build log was saved at
"file://e:\CIT1173\VS20 05Test\VS2005Te st\Debug\BuildL og.htm"
VS2005Test - 0 error(s), 0 warning(s)

But, no .exe!

So, it looks to me as if no executable is being created, but VS does not
consider that a problem?

I could swear this issue was not encountered in Beta 2, and creating empty
Win32 console projects, then having students create C++ programs to learn
language basics is essential to our classroom use of the product, just as
we've been doing with VS 6, VS.net 2002 and VS.NET 2003.

Sure hope there's a way to fix this.

Nov 17 '05 #4
Ted
I had the same problem as you did - I couldn't find the EXE.

Then I realized it makes two folders for some reason, e.g. in your case:

E:\CIT1173\VS20 05Test\Debug\

and

E:\CIT1173\VS20 05Test\VS2005Te st\Debug\

The EXE file will be in the first folder, not the second. I'm not sure why
it has two folders like that. It did that for me with a default wizard
generated project. But in my case the EXE ran without any problems.

I think that the residual old version(s) of the CRT that you found on your
machine is causing the problems. I don't know how to clean it.

Ted.

"pvdg42" <pv****@newsgro ups.nospam> wrote in message
news:OT******** ******@TK2MSFTN GP14.phx.gbl...

"Ted" <te*@t--x.org> wrote in message
news:u1******** ******@TK2MSFTN GP15.phx.gbl...
I should also mention that there also should be a file in:

C:\WINDOWS\WinS xS\Policies\x86 _policy.8.0.Mic rosoft.VC80.CRT _1fc8b3b9a1e18e 3b_x-ww_77c24773

named:

8.0.50727.42.po licy

and there should be a line in there like this:

<bindingRedirec t oldVersion="8.0 .41204.256-8.0.50608.0"
newVersion="8.0 .50727.42"/>

All information provided so far assumes you are using the RTM (i.e.
shipping) version of Visual Studio 2005.

Ted.

"Ted" <te*@t--x.org> wrote in message
news:uT******** ******@TK2MSFTN GP10.phx.gbl...
It appears that your manifest is not getting embedded properly, or your
VC DLLs are not installed in the correct place.

That file should be in

C:\WINDOWS\WinS xS\x86_Microsof t.VC80.DebugCRT _1fc8b3b9a1e18e 3b_8.0.50727.42 _x-ww_f75eb16c

If you open up your EXE as resources using the resource editor, you
should see a manifest file RT_MANIFEST as 1. It should have references
to this DLL, something like this:

<assemblyIdenti ty type="win32" name="Microsoft .VC80.DebugCRT"
version="8.0.50 608.0"

Ted.


Yes, this is the Visual Studio 2005 Professional Edition RTM, as
downloaded from MSDN.

I installed it on a third PC in my office and have the same behavior from
all three instances.
I have verified the file MSVCP80D.dll exists in the location you specify.
However, I also find a second copy of the file at:

D:\Program Files\Microsoft Visual Studio 8\VC\redist\Deb ug_NonRedist\x8 6
\Microsoft.VC80 .DebugCRT.

(Note: D: is the install drive, and the OS partition here.)
Could the second copy be causing the problem?
I have also verified the entry you cited in the 8.0.50727.42.po licy file,
which is found in the location you specified.
However, when I looked in the debug folder for the .exe, there is no .exe
to be found, even though the output from build/rebuild shows 0 errors, 0
warnings, there is a link entry referring to the build log, where I find a
note indicating the .exe could not be found or created:

Compiling manifest to resources...
Linking...
LINK : E:\CIT1173\VS20 05Test\Debug\VS 2005Test.exe not found or not built
by the last incremental link; performing full link
Embedding manifest...
Results
Build log was saved at
"file://e:\CIT1173\VS20 05Test\VS2005Te st\Debug\BuildL og.htm"
VS2005Test - 0 error(s), 0 warning(s)

But, no .exe!

So, it looks to me as if no executable is being created, but VS does not
consider that a problem?

I could swear this issue was not encountered in Beta 2, and creating empty
Win32 console projects, then having students create C++ programs to learn
language basics is essential to our classroom use of the product, just as
we've been doing with VS 6, VS.net 2002 and VS.NET 2003.

Sure hope there's a way to fix this.


Nov 17 '05 #5
Hi,
Compiling manifest to resources...
Linking...
LINK : E:\CIT1173\VS20 05Test\Debug\VS 2005Test.exe not found or not built bythe last incremental link; performing full link
Embedding manifest...
Results
Build log was saved at
"file://e:\CIT1173\VS20 05Test\VS2005Te st\Debug\BuildL og.htm"
VS2005Test - 0 error(s), 0 warning(s)


I agree with Ted's opinion, the output executable should be in the
directory:
E:\CIT1173\VS20 05Test\Debug\

not the following one:
E:\CIT1173\VS20 05Test\VS2005Te st\Debug\

This is determined by the "Output File" setting in the console app project
properties' "Configurat ion Properties/Linker/General", it is specified as
"$(OutDir)\$(Pr ojectName).exe" as default, the $(OutDir) will be parsed as
E:\CIT1173\VS20 05Test\Debug\
in your case.
Thanks!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default...sdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 17 '05 #6
On Mon, 14 Nov 2005 22:18:26 -0500, "Ted" <te*@t--x.org> wrote:
I had the same problem as you did - I couldn't find the EXE.

Then I realized it makes two folders for some reason, e.g. in your case:

E:\CIT1173\VS2 005Test\Debug\

and

E:\CIT1173\VS2 005Test\VS2005T est\Debug\

'
I've also wondered about that. I've also seen ..\obj\debug and
...\bin\debug, both with exe files. Does anyone know why VS creates
two folders?

Nov 17 '05 #7

"pvdg42" <pv****@newsgro ups.nospam> wrote in message
news:OT******** ******@TK2MSFTN GP14.phx.gbl...

"Ted" <te*@t--x.org> wrote in message
news:u1******** ******@TK2MSFTN GP15.phx.gbl...
I should also mention that there also should be a file in:

C:\WINDOWS\WinS xS\Policies\x86 _policy.8.0.Mic rosoft.VC80.CRT _1fc8b3b9a1e18e 3b_x-ww_77c24773

named:

8.0.50727.42.po licy

and there should be a line in there like this:

<bindingRedirec t oldVersion="8.0 .41204.256-8.0.50608.0"
newVersion="8.0 .50727.42"/>

All information provided so far assumes you are using the RTM (i.e.
shipping) version of Visual Studio 2005.

Ted.

"Ted" <te*@t--x.org> wrote in message
news:uT******** ******@TK2MSFTN GP10.phx.gbl...
It appears that your manifest is not getting embedded properly, or your
VC DLLs are not installed in the correct place.

That file should be in

C:\WINDOWS\WinS xS\x86_Microsof t.VC80.DebugCRT _1fc8b3b9a1e18e 3b_8.0.50727.42 _x-ww_f75eb16c

If you open up your EXE as resources using the resource editor, you
should see a manifest file RT_MANIFEST as 1. It should have references
to this DLL, something like this:

<assemblyIdenti ty type="win32" name="Microsoft .VC80.DebugCRT"
version="8.0.50 608.0"

Ted.

OK, found the .exe and renamed the extra instances of MSVCP80D.DLL on the
two machines here at home. Now, all is well. I'll do the same at work later
today. I'm convinced, from the two installations here, that renaming or
deleting the extra files is the fix.
Thanks very much to you and to Gary for bailing me out!
Nov 17 '05 #8

"pvdg42" <pv****@newsgro ups.nospam> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..

"pvdg42" <pv****@newsgro ups.nospam> wrote in message
news:OT******** ******@TK2MSFTN GP14.phx.gbl...
OK, found the .exe and renamed the extra instances of MSVCP80D.DLL on the
two machines here at home. Now, all is well. I'll do the same at work
later today. I'm convinced, from the two installations here, that renaming
or deleting the extra files is the fix.
Thanks very much to you and to Gary for bailing me out!

Heh...
You know you're in trouble when you start answering your own posts.
The rename fix applied to the office PC did *not* fix the problem. Only
clear difference is that on that PC, VS 2005 was not installed on the OS
partition as it is here at home. I'm going to investigate further and follow
up on Gary's suggestion on the proper location for the .exe.
I'll report back what I discover...
Nov 17 '05 #9

"pvdg42" <pv****@newsgro ups.nospam> wrote in message
news:Oe******** *****@TK2MSFTNG P10.phx.gbl...
Two installations of VS 2005 Pro RTM. Same symptom with both.
Simple Win32 Console application compiles fine, but when I attempt to run
(with or without debugging), message appears: failed to find mdvcp80d.dll.
A search reveals the file is present (two instances, 1004 kb each).
Anybody else seen this? Any ideas how to rectify the situation?

Just to put a stopper on this bottle:
The problem PC was not connected to a network, thus while SP2 (for Win XP)
was installed, it was missing numerous other updates. I hooked it up,
downloaded and installed all critical updates for Win XP, and all issues
with VS 2005 disappeared. Working fine now.
Lesson learned and something for me to remember if our MSDNAA-eligible
students report the same types of issues.
Nov 18 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1458
by: _R | last post by:
I've tried generating a couple console apps under VS2005 b2. The debugger brings up a window, but no output from WriteLine. ReadLine also seems to hang. Programs run fine outside of VS2005. A program as simple as this exhibits the problem: static void Main(string args) { Console.WriteLine("Test"); Console.ReadLine();
2
1062
by: clintonG | last post by:
I forgot the distinction -- if any -- and wonder why I would want the SDK installed if I had VS2005 Pro installed? I've just learned the SDK requires SSE to be installed for QuickStart samples. Does anybody know if there are SSE dependencies when VS2005 is installed? <%= Clinton Gallagher
6
3644
by: Brad | last post by:
I have a win2003 server workstation with multiple webs, each web has it's own ip address. In VS2005, if I select to open an existing web site, select Local IIS, the dialog correctly displays a list of all of my webs, however if I attempt to open a site under and web other than localhost I receive the message: "Unable to open the Web 'http://localhost/anywebappname'. The Web 'http://localhost/anywebappname' does not exist" Obviously...
1
1137
by: guy | last post by:
i have a simple (1 form) Winforms VB.net 2003 app and am migrating it to vb2005 testing both on the same box... if i run the 2003 version it works correctly, but the 2005 version fails when attempting to connect to a SQL Server database. looking at the connection object after the attempt i have an exception object in the WorkstationID:-
3
2406
by: Paul Lennon | last post by:
Hi, I hope I have selected the right group for this question, I am looking for assistance with using VS2005 to create a simple website on my ISP. Using VS2005 I have created a Website project using the file system. I am not trying to do any server side programming, for now simple HTML is sufficient. My site seems to be working fine locally and now I want to publish it to my Comcast directory. Comcast claims that they support FrontPage...
0
1481
by: GT | last post by:
This question has been posted before, but without any response so therefore I'm trying once more. I'm trying to embed .resource files into a Windows application in VS2005, and then compile and run the program from VS2005. This does not work because the debugger seems not find the resource files, and I keep getting the following error: "MissingManifestResourceException:
2
3185
by: fineman | last post by:
Hi all, I want to get a 64bit(8 bytes) Encrypt result use DES class in the VS2005. Though I encrypt data is 64bit(8 bytes), but DES return encrypt result that always is 128bit(16 bytes), I don't know why? How to get a 64bit(8 bytes) encrypt result using DES class in the VS2005?
3
1457
by: Thomas | last post by:
Hi, I have written a simple console program in VS2005 and it should run on computers that dosn't have .NET (not 1.1 and not 2.0). I think it depends on the headerfiles? I have exculded the default stuff (stdafx.h, stdafx.cpp). And I use the following headers: #include <shlwapi.h> #include <stdio.h> #include <stdarg.h> #include <vector>
4
1346
by: pinkmonkey4ever | last post by:
I have a VC6 ANSI C (console) project that I have recompiled sucessfully under VS2005. However, when I attempt to debug the code (step through) - my breakpoints are disabled (msg : "beakpoints will not be hit"), and worse still - I find that instead of steopping through my code, I am stepping through a file named crt.exe - which guessing from the function names in the file (as well as the file name itself) - is something to do with the...
0
9847
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9693
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10583
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10638
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10280
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9419
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7012
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5680
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
3128
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.