VS 2005 Win 32 Console Project Behavior

P

pvdg42

When we use Visual Studio in beginning C++ classes, we routinely follow the
scenario below.



Create a Win 32 Console Project (empty).

Add a C++ source code file to the project.



Enter code (simple example below).



#include <iostream>

#include <string>



using namespace std;



int main()

{

int x = 0;

string y;

cout << "Enter your name: ";

cin >> y;

cout << "\nEnter your age: ";

cin >> x;

cout << "\n\nHello " << y << " !\n";

cout << "You are " << x << " years old.\n\n";

return 0;

}



If I select Build ProjectName or Build Solution from the Build menu, the
build completes and I am able to Start or Start Without Debugging to run the
program.



However, If I select Rebuild ProjectName or Rebuild Solution, the output
window shows the messages below (note the line about .exe not found):



Linking...

LINK : E:\2005_Fall_Students\CPPConsole\Debug\CPPConsole.exe not found or
not built by the last incremental link; performing full link

Embedding manifest...

Build log was saved at
"file://e:\2005_Fall_Students\CPPConsole\CPPConsole\Debug\BuildLog.htm"

CPPConsole - 0 error(s), 0 warning(s)

========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========



If I then try to run the program, the following dialog appears:



TitleBar: ProjectName.exe - Unable to Locate Component



Message: This application failed to start because MSVCP80D.dll was not
found. Reinstalling the application may fix this problem.



The only way I can resurrect the project is to delete the Debug folder under
the outer ProjectName folder (the one with the .exe in it) then go back into
VS 2005 and use Build vs. Rebuild to create a new executable that will run.



As this behavior did not occur with VS .NET or VS . NET 2003, and seems
illogical, I can only conclude that it's a bug?



Any comments welcomed.
 
G

Gary Chang[MSFT]

Hi,
The only way I can resurrect the project is to delete the
Debug folder under the outer ProjectName folder
(the one with the .exe in it) then go back into VS 2005 and
use Build vs. Rebuild to create a new executable that will run.

It seems like the VS2005 couldn't create the manifest file correctly as the
first time, I followed your repro steps but could not repro this problem on
my side. Would you please upload a self alone project(zipped) to us for
test, by the way, which version of the VS2005 do you use?
(Please remove the "online" of my email address alias)


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.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn

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

pvdg42

"Gary Chang[MSFT]" said:
Hi,
The only way I can resurrect the project is to delete the
Debug folder under the outer ProjectName folder
(the one with the .exe in it) then go back into VS 2005 and
use Build vs. Rebuild to create a new executable that will run.

It seems like the VS2005 couldn't create the manifest file correctly as
the
first time, I followed your repro steps but could not repro this problem
on
my side. Would you please upload a self alone project(zipped) to us for
test, by the way, which version of the VS2005 do you use?
(Please remove the "online" of my email address alias)


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.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no
rights.
To where do you want this project uploaded?
 
P

pvdg42

"Gary Chang[MSFT]" said:
Hi,
The only way I can resurrect the project is to delete the
Debug folder under the outer ProjectName folder
(the one with the .exe in it) then go back into VS 2005 and
use Build vs. Rebuild to create a new executable that will run.

It seems like the VS2005 couldn't create the manifest file correctly as
the
first time, I followed your repro steps but could not repro this problem
on
my side. Would you please upload a self alone project(zipped) to us for
test, by the way, which version of the VS2005 do you use?
(Please remove the "online" of my email address alias)


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.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no
rights.
Further: this problem occurs consistently over five installations of Visual
Studio 2005 on five different PC's. There is no common hardware or software
configuration. We have tried lab, classroom and my office PC. In addition
I've installed on two PC's here at home.
Can I assume you want a project in the failed state?
 
P

pvdg42

"Gary Chang[MSFT]" said:
Hi,
The only way I can resurrect the project is to delete the
Debug folder under the outer ProjectName folder
(the one with the .exe in it) then go back into VS 2005 and
use Build vs. Rebuild to create a new executable that will run.

It seems like the VS2005 couldn't create the manifest file correctly as
the
first time, I followed your repro steps but could not repro this problem
on
my side. Would you please upload a self alone project(zipped) to us for
test, by the way, which version of the VS2005 do you use?
(Please remove the "online" of my email address alias)


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.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no
rights.
Sorry, I failed to answer all your questions.
Product in question is the MSDN RTM download DVD image of Visual Studio
2005, Professional Edition. Download took place on 10/28/2005, shortly after
the image became available.
 
N

Nikola Dudar [MSFT]

Hi,

I cannot repro also this but this does look like a bug in IDE of Visual
Studio. Please report it on http://lab.msdn.microsoft.com/productfeedback/.

If you can attach zip with your project, and build.log files from the
initial "Build" and from "Rebuild". Also add info what version of VS you
have installed. You may find it in IDE in menu Help->About. From description
it sounds like you have VC++ Express.

Thanks,
Nikola

--
Nikola Dudar
Visual C++ Team
This posting is provided "AS IS" with no warranties, and confers no rights.
Suggestions? Bugs? Talk directly to dev teams using
http://lab.msdn.microsoft.com/productfeedback/
My Blog - http://blogs.msdn.com/nikolad/
 
P

pvdg42

Nikola Dudar said:
Hi,

I cannot repro also this but this does look like a bug in IDE of Visual
Studio. Please report it on
http://lab.msdn.microsoft.com/productfeedback/.

If you can attach zip with your project, and build.log files from the
initial "Build" and from "Rebuild". Also add info what version of VS you
have installed. You may find it in IDE in menu Help->About. From
description it sounds like you have VC++ Express.

Thanks,
Nikola

--
Nikola Dudar
Visual C++ Team
This posting is provided "AS IS" with no warranties, and confers no
rights.
Suggestions? Bugs? Talk directly to dev teams using
http://lab.msdn.microsoft.com/productfeedback/
My Blog - http://blogs.msdn.com/nikolad/
I am using Visual Studio 2005, Professional Edition.
Version Number: 8.0.50727.42 (RTM.050727-4200)
..NET Framework Version 2.0.50727
I have also sent a zipped up project (in the failed state) to him.
 

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