473,463 Members | 1,530 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

VS 2005 Win 32 Console Project Behavior

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.
Dec 20 '05 #1
7 1752
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...sdn/nospam.asp
&SD=msdn

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

Dec 21 '05 #2

""Gary Chang[MSFT]"" <v-******@online.microsoft.com> wrote in message
news:xR**************@TK2MSFTNGXA02.phx.gbl...
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...sdn/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?
Dec 21 '05 #3

""Gary Chang[MSFT]"" <v-******@online.microsoft.com> wrote in message
news:xR**************@TK2MSFTNGXA02.phx.gbl...
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...sdn/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?
Dec 21 '05 #4

""Gary Chang[MSFT]"" <v-******@online.microsoft.com> wrote in message
news:xR**************@TK2MSFTNGXA02.phx.gbl...
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...sdn/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.
Dec 21 '05 #5
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/
"pvdg42" <pv****@newsgroups.nospam> wrote in message
news:eo****************@TK2MSFTNGP09.phx.gbl...
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.

Dec 22 '05 #6

"Nikola Dudar [MSFT]" <ni*****@online.microsoft.com> wrote in message
news:OR**************@TK2MSFTNGP14.phx.gbl...
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.
Dec 22 '05 #7

"Nikola Dudar [MSFT]" <ni*****@online.microsoft.com> wrote in message
news:OR**************@TK2MSFTNGP14.phx.gbl...
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/.

OK, bug reported as you have requested, including logs from both Build and
Rebuild. The submitted project is in the failed state after trying Rebuild.
Dec 22 '05 #8

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

Similar topics

6
by: carbon_dragon | last post by:
Ok, so here is the problem. I'm working on a headless server program implemented as a .NET C# Console project. There is a UPS mounted to this server (though not a windows compliant UPS). I can only...
54
by: m.roello | last post by:
In the book: "Working with Microsoft Visual Studio 2005" Craig Skibo wrote: "The power of Visual Studio 2005 lies in its ability to empower users to build, test, and debug powerful applications...
10
by: WT | last post by:
Hello, I have been publishing my web site many times to the remote where resides my final web site. Everything was ok, but to-day, without any configuration change, vs doesn't copy final files...
4
by: Chris | last post by:
Hi this time I am interested in console applications only. Now I need to create a simple .dll. How to do that? I am totally newbie in dll creation so be patient ;) I have searched internet but I...
2
by: =?Utf-8?B?c21pdGhrbDQy?= | last post by:
I'm just now beginning to experiment with WCF, and I've run into an odd hiccup right at the beginning. I presume it's just something I'm doing wrong, but I can't figure it out. I've created a...
9
by: HC | last post by:
Hello, all, I started out thinking my problems were elsewhere but as I have worked through this I have isolated my problem, currently, as a difference between MSDE and SQL Express 2005 (I'll just...
4
by: Goran Djuranovic | last post by:
Hi all, I am experiencing a strange thing happening with a "designer.vb" page. Controls I manually declare in this page are automatically deleted after I drop another control on a ".aspx" page. -...
8
by: Dave | last post by:
Does anyone have any idea why my 2005 solution is choosing to rebuild, everytime i execute any project within its space? There's nothing overly strange with the project assemblies within, a few...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
1
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...
0
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,...
0
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...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.