473,320 Members | 1,958 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

msxml sample compilation

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(8 5): 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
Nov 17 '05 #1
4 2350

"Senthil" <Se*****@discussions.microsoft.com> wrote in message
news:1D**********************************@microsof t.com...
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(8 5): 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
Nov 17 '05 #2
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(1 7): error C2065:
'IXMLDOMDocument3' : undeclared identifier

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

-Senthil

"Fredrik Wahlgren" wrote:

"Senthil" <Se*****@discussions.microsoft.com> wrote in message
news:1D**********************************@microsof t.com...
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(8 5): 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

Nov 17 '05 #3

"Senthil" <Se*****@discussions.microsoft.com> wrote in message
news:46**********************************@microsof t.com...
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(1 7): 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
Nov 17 '05 #4
Project Properties -> C/C++ -> Create/Use Precompiled Header -> Select "Not
Using Precompiled Headers"
"Senthil" <Se*****@discussions.microsoft.com> wrote in message
news:1D**********************************@microsof t.com...
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(8 5): 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

Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Val Melamed | last post by:
Hi all, These days I'm playing with schemas and SOM from MSXML. To learn it I used the excellent tutorial from Mr.Costello: http://www.xfront.com/xml-schema.html. while working through the...
0
by: Variable | last post by:
I have a webpage where I'm opening an XML page with MSXML, pushing it through an XSL file to generate some HTML which is incorporated into the body of the main HTML page. I have other pages where...
9
by: LarryR | last post by:
The following XSLT works fine using MSXML 4.0 (e.g I receive a result in about 20 seconds), but effectively hangs in both .NET 1.0 sp2 with the XML hot fix and NET 1.1. My source XML file is...
0
by: Sven Mayer | last post by:
I am searching for a sample source code which shows how to traverse a XML/XSD schema with SOM (Schema object model) and MSXML Sven
0
by: upendra.desai | last post by:
Hi, I have written an application in Microsoft Visual C++ (Visual Studio 6.0) that uses MSXML 4.0 SP2. When I try to load an XML from a file, it throws an E_ACCESSDENIED (HRESULT = 0x80070005)...
0
by: upendra.desai | last post by:
Hi, I have written an application in Microsoft Visual C++ (Visual Studio 6.0) that uses MSXML 4.0 SP2. When I try to load an XML from a file, it throws an E_ACCESSDENIED (HRESULT = 0x80070005)...
3
by: Sharon | last post by:
How can I find what MSXML version I have installed? -- Thanks Sharon
13
by: yawnmoth | last post by:
<http://www.quirksmode.org/book/printable/xmlhttp.txtshows two alternatives to Microsoft.XMLHTTP - Msxml2.XMLHTTP and Msxml3.XMLHTTP. If my understanding is correct, the different numbers refer to...
19
by: Matthias Truxa | last post by:
Hello, can anyone confirm the existence of the following effects which I'd consider being a critical bug in msxml according to w3c's xpath specs? The Spec says: "The parent, ancestor,...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.