0

I dont know how i did it before, but i dont quite remember how to get started on a win 32 console program for Microsoft Visual 2010 ultimate edition.

could someone give a basic idea of where to start for a blank template?
I did:
New project,
Win 32 console app,
Empty template

and when i get in there it wants somethink like

#include "stdafx.h" //or some weird thing like that.

Error 1 error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include ""' to your source?

//this for example won't compile 


#include <iostream>
using namespace std;

int main()
{
cout << "This should work but it doesn't."
return 0;
}

}

sorry, i know this is a dumb question, but i tried a few diff configurations and i cannot figure this out

2
Contributors
4
Replies
6
Views
5 Years
Discussion Span
Last Post by dospy
0

i think the problem is your project properties
try this:
File->New Project->Win 32 Console App
now, a window will pop up; DO NOT PRESS FINISH
Click next, make sure that the application type is 'Console application' and uncheck the 'Precompiled heather' box and check 'empty project' box

everything should be working now

0

Ok I can do that. But then I dont get a window to start typing code into. I have the sloution explorer and the error list. no big window to type code.

0

NVM i found it. sorry for the dumb question... under add, go to add c++ file (.cpp)
Took a little digging. but it wasnt too bad.

thanks for the guidance.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.