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.
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.