I got a error with Microsoft Visual C++

hi everyone,
Im new to C++ and i like it...
i am using microsoft visual C++ 2008 Express edition
i started writing my first program but im having a problem.. im writing:



#include <iostream>
using namespace std;
//A program to sum 2 integer values
int main()
{ 
	int num1,num2,sum; //im declaring 2 values and the sum
           cout<<"Please enter 2 integer values\n";
           

           cin>>num1;
           cin>>num2;

   sum = num1 + num2;
   cout<<"Their Sum Is:"
	   <<sum
	   <<endl;
           return 0;



when i press ctrl + F5 i get this error

1>------ Build started: Project: pr2, Configuration: Debug Win32 ------
1>Embedding manifest...
1>.\Debug\pr2.exe.intermediate.manifest : general error c1010070: Failed to load and parse the manifest. The system cannot find the file specified.
1>Build log was saved at "file://c:\Users\BAKO\Documents\Visual Studio 2008\Projects\pr2\pr2\Debug\BuildLog.htm"
1>pr2 - 1 error(s), 0 warning(s)


the same thing happens with microsoft visual C++ 2010

i think my problem is with
<iostream>
because when i use microsoft visual c++ 6.0
and write


#include <iostream.h>


instead of

#include <iostream>
using namespace std;


its working all fine..
what is the problem??
thank you for your help

Last edited on
Are you actually adding a source file to the project/solution instead of just opening one? If you are:

http://answers.yahoo.com/question/index?qid=20081230175223AA2UxR8
well i start like that
file---> new ---> project ---> win32 console application ---> next ---> empty project---> finish
then
file---> new ---> file---> C++ file(.cpp)

i wrote a code as simple as that

#include <iostream>
using namespace std;
int main()
{
cout<<"HI";
return 0;
}




and i get the same error!
i just cant find what the problem is..
i downloaded and installed MICROSOFT VISUAL C++ 2010
and it didn't work either
Try adding #include "stdafx.h" as the first line. That should help.
Hi guys, i just installed Microsoft Visual STudio "2008 Express.

I can't find the folder for it and there is no shortcut?? Can someone tell me what is going on.

It's not in program files. I have windows 7.
It's a bit odd that you just installed the 2008 version. Why not get the latest?

Anyway, a successful (default) installation should create a new folder in Programs, called "Microsoft Visual Studio <version> Express". If it's not there, either you messed up the installation, or you changed the paths.

The actual files are located here by default (64bit Win7, VC++2010E):
"C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\VCExpress.exe"
Thanks,

I have installed 2008 express edition, as i am follwoing a tutorial using this version from Dark games studio edition Game design bundle.0 The suit where star wratith was born.

~I didn't change the install path, it installed directly without an option for browse path.

Are other versions similar to use?

Yes. I upgraded to 2010 not so long ago and I don't think I had to "relearn" anything.
Topic archived. No new replies allowed.