Evan8
07-11-2001, 10:22 AM
Hi all,
i'm new to VC++ (and c++ in general, to be honest). I wanted to create a console application, and c++ always includes the file "stdafx.h", which it creates. For example, this happens when creating a new "Hello world" Win32 console app. Why is it that when i need this "stdafx.h" file? Other compilers are fine with:
int main()
{
return 0;
}
but vc++ gives errors when i compile this. why? is there any way to simply print to the console without stdafx and all?
thanks! sorry for any confusion http://www.sharkyforums.com/ubb/smile.gif
-evan
i'm new to VC++ (and c++ in general, to be honest). I wanted to create a console application, and c++ always includes the file "stdafx.h", which it creates. For example, this happens when creating a new "Hello world" Win32 console app. Why is it that when i need this "stdafx.h" file? Other compilers are fine with:
int main()
{
return 0;
}
but vc++ gives errors when i compile this. why? is there any way to simply print to the console without stdafx and all?
thanks! sorry for any confusion http://www.sharkyforums.com/ubb/smile.gif
-evan