Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem compiling DLL file using multiple header files and source file

Status
Not open for further replies.

ASPNETnewbie

Programmer
May 9, 2006
93
US
I have some source files in different folders and headers files as well that I would like to use to compile a DLL file but I keep running into problems ( errors) that I need help with.

fatal error C1083: Cannot open include file: 'winhttp.h': No such file or directory

==========================================================
fatal error C1189: #error : include 'stdafx.h' before including this file for PCH and the cursor shows those lines:

#ifndef __AFXWIN_H__
#error include 'stdafx.h' before including this file for PCH
#endif
===========================================================
 
Precompiled headers are a pain in the ass, so I always turn that option off in the Project Settings. But if you really feel like using them, you need to #include "stdafx.h" before any other #include directives in all your files.

If you're using VC++ 2005 Express and you haven't already done so, read the instructions on this site and do what it says:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top