Create a new proyect (menu file/new/proyect/win32 console proyect)
Clic in "aplication config" on the new dialog which has just pop.
Check "empty proyect" in "additional options"
That way you will create a proyect w/out precompiler headers, but if you don´t want to make a new proyect, just delete both stdafx.cpp and stdafx.h files from your proyect explorer. Then edit proyect properties (menu proyect/properties)
In the C++ folder look for precompiled headers; the first option is "create or use precompiled headers" switch it to "Do not create or use precompiler headers"
Finaly make sure you change
int _tmain(int argc, _TCHAR* argv[])
for
int main (int argc, char* argv[]) or int main()
and get rid of #include "stdafx.h"
Your proyect should compile just fine now.
Regards.
Sorry if any menu´s name is wrong, because english isn´t my native language, so I´m translating from my Visual C++ versión.
[edited by - zheo on December 17, 2003 12:35:49 PM]
Popular Topics
Advertisement