-
Error E2209
Hello I am getting following error
even I have the header file,
any one can help me
---------------------------------
Error E2209 kjasd.cpp 5: Unable to open include file 'stdafx.h'
Warning W8066 kjasd.cpp 21: Unreachable code in function __stdcall WndProc(HWND__ *,unsigned int,unsigned int,long)
Warning W8066 kjasd.cpp 26: Unreachable code in function __stdcall WndProc(HWND__ *,unsigned int,unsigned int,long)
Warning W8066 kjasd.cpp 36: Unreachable code in function __stdcall WndProc(HWND__ *,unsigned int,unsigned int,long)
Warning W8057 kjasd.cpp 103: Parameter 'hPrevInstance' is never used in function __stdcall WinMain(HINSTANCE__ *,HINSTANCE__ *,char *,int)
Warning W8057 kjasd.cpp 103: Parameter 'lpCmdLine' is never used in function __stdcall WinMain(HINSTANCE__ *,HINSTANCE__ *,char *,int)
Warning W8057 kjasd.cpp 103: Parameter 'nCmdShow' is never used in function __stdcall WinMain(HINSTANCE__ *,HINSTANCE__ *,char *,int)
-
What compiler are you using?
Where is your compiler searching for include files?
More info would be helpful =)
-
You are probably using Visual Studio Express. If that's the case, stdafx.h is not available. You will need to open your resource file (.rc) to view the source and change stdafx.h to windows.h. A quick google search would have given you this answer.
You could also use a different compiler/ide such as Dev-C++ or Code::Blocks or get a real version of Visual Studio.
Popular pages
Recent additions