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

MFC/ADO to VB/COM/ADO error

Status
Not open for further replies.

JoshClark

Programmer
Joined
Feb 6, 2001
Messages
4
Location
US
I'm working an MFC DLL that will be used in a VB white-box testing tool. My DLL references the ADO typelib to recognize types used in imported VB COM objects that are used as middleware between the application-under-test's web front-end and MSSQL back-end. I keep getting this one freaking error when I try to build my DLL:

Fatal Error C1189: Windows.h already included. MFC apps must not #include <windows.h>.

What is causing this and how can I fix it?

Urgent! Please Help!!

Josh Clark
Test Engineer
Prime Meridian Software
 
try to include windows.h after including afx.h
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top