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!

Error when trying to import .ddl file

Status
Not open for further replies.

kook04

Programmer
Jun 26, 2001
58
US
I have a VC++ application in which I am trying to use Microsoft's XML Parser. The tutorial I am following says to add the following line to stdafx.h:

#import "msxml.dll"

When I do, I get the following error at compile:

fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h>

I've tried putting the import in another file and get the same error. I am new to C++ and hope someone can help.

Thanks ------
KJR
 
try to add all your code with class wizard->AddNewClass->From a type library. Wizard will add some h files and cpp fles. You wil use only that h files what you need. John Fill
1c.bmp


ivfmd@mail.md
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top