473,698 Members | 2,440 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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++\Pr ojects\TrivialP roj\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
Nov 17 '05 #1
4 2370

"Senthil" <Se*****@discus sions.microsoft .com> wrote in message
news:1D******** *************** ***********@mic rosoft.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++\Pr ojects\TrivialP roj\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
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++\Pro jects\TrivialPr oj\TrivialProj. cpp(17): error C2065:
'IXMLDOMDocumen t3' : undeclared identifier

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

-Senthil

"Fredrik Wahlgren" wrote:

"Senthil" <Se*****@discus sions.microsoft .com> wrote in message
news:1D******** *************** ***********@mic rosoft.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++\Pr ojects\TrivialP roj\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

Nov 17 '05 #3

"Senthil" <Se*****@discus sions.microsoft .com> wrote in message
news:46******** *************** ***********@mic rosoft.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++\Pro jects\TrivialPr oj\TrivialProj. cpp(17): error C2065:
'IXMLDOMDocumen t3' : 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*****@discus sions.microsoft .com> wrote in message
news:1D******** *************** ***********@mic rosoft.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++\Pr ojects\TrivialP roj\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

Nov 17 '05 #5

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

Similar topics

1
2351
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 labs I stumbled upon a problem with substitutionGroup-s (Lab 9). Below you can find both the schema and a sample document to test it. Unfortunately, MSXML doesn't like the document and ends up with an error: "### <guarantee>lifetime...
0
1296
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 this all works great. One page, however, seems to bypass the a for-each iteration, and I can't understand why. I've used XMLSpy to validate the XML and XSL, and as far as I can see, the simulated generation through XMLSpy is correct. Here is...
9
1787
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 large at over 46,000 <atl_client> nodes <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/> <!-- lookup port...
0
1278
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
1548
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) exceptioon. I am not sure why this is happenning. The sample code is: IXMLDOMDocument2Ptr spXMLDocument; spXMLDocument.CreateInstance(CLSID_DOMDocument40);
0
1785
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) exceptioon. I am not sure why this is happenning. The sample code is: IXMLDOMDocument2Ptr spXMLDocument; spXMLDocument.CreateInstance(CLSID_DOMDocument40);
3
70193
by: Sharon | last post by:
How can I find what MSXML version I have installed? -- Thanks Sharon
13
25258
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 the version of Microsoft's XML parser and that Microsoft.XMLHTTP refers to the latest installed version. This makes me wonder why sites like <http://developer.apple.com/internet/webcontent/xmlhttpreq.htmlopt to use Msxml2.XMLHTTP, first, and...
19
2616
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, ancestor-or-self, preceding, and preceding-sibling axes are reverse axes" http://www.w3.org/TR/2005/CR-xpath20-20051103/#doc-xpath-ReverseAxis
0
9029
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8897
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8867
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6522
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5860
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3050
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2332
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2006
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.