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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Make dll from exe

Status
Not open for further replies.

momukhtar

Programmer
Mar 10, 2008
8
I want to convert a windows based application (.exe) into a dll.
I received "fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h> C:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\include\afxv_w32.h"
Then I found out that windows.h is indirectly included through other files like afxtempl.h , afxdisp.h. But I cannot Comment out this directive because it contains classes that are inherited from these files.
Also there are several other classes in the application with the same problem.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top