Hi Dw

I'm creating a program and it require to have a manager so I downloaded and added all the files that are related but I keep getting this error. "error C1189: #error : include 'stdafx.h' before including this file for PCH".

There is a file that has the code which this error point to here is the entire code where the error point to:

#ifndef __AFXWIN_H__
  #error include 'stdafx.h' before. including this file for PCH
#endif

Any idea on how I can solve this? When I comment the. #error. line and debug I get around 420 errors and 8 messages but if I uncomment it I only get 6 errors messages on error list which are all the same error pointing the same error to the same file, same line, and same column.

Thanks

Add #include <stdafx.h> to your code. Before whatever you had to include to get this error.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.