msxml sample compilation

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I installed the MSXML 4.0 sp2 and wanted to play around with DOM using C++
and followed the instructions on "Program with DOM in C/C++" section in the
MSXML SDK. The compilation fails in Visual Studio .NET 2003 with the
following error message

"c:\Code\C++\Projects\TrivialProj\loadDOMRaw.cpp(85): fatal error C1010:
unexpected end of file while looking for precompiled header directive"

Iam creating a win32 console app and deleting the default files that Visual
Studio creates and replacing it with the loadDOMRaw.cpp file.

What am I missing?

-Senthil
 
Senthil said:
I installed the MSXML 4.0 sp2 and wanted to play around with DOM using C++
and followed the instructions on "Program with DOM in C/C++" section in the
MSXML SDK. The compilation fails in Visual Studio .NET 2003 with the
following error message

"c:\Code\C++\Projects\TrivialProj\loadDOMRaw.cpp(85): fatal error C1010:
unexpected end of file while looking for precompiled header directive"

Iam creating a win32 console app and deleting the default files that Visual
Studio creates and replacing it with the loadDOMRaw.cpp file.

What am I missing?

-Senthil

Did you forget to #include "stdafx.h" in your cpp file?
/ Fredrik
 
ok, I do not understand the significance on including stdafx.h, for this
example ??

After including the stdafx.h Iam getting a long list of error messages
starting with

c:\Code\C++\Projects\TrivialProj\TrivialProj.cpp(17): error C2065:
'IXMLDOMDocument3' : undeclared identifier

I have included the "Include: dir and the "Lib" dir in my project options.

-Senthil
 
Senthil said:
ok, I do not understand the significance on including stdafx.h, for this
example ??

After including the stdafx.h Iam getting a long list of error messages
starting with

c:\Code\C++\Projects\TrivialProj\TrivialProj.cpp(17): error C2065:
'IXMLDOMDocument3' : undeclared identifier

I have included the "Include: dir and the "Lib" dir in my project options.

-Senthil


Where did you download the SDK? Can you send me the URL?

/ Fredrik
 
Project Properties -> C/C++ -> Create/Use Precompiled Header -> Select "Not
Using Precompiled Headers"
 
Back
Top