473,323 Members | 1,560 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,323 software developers and data experts.

Compiler Errors When You Use #import with XML in Visual C++ .NET

Hi everyone,
I have the same problem as described under Q316317
(http://support.microsoft.com/default.aspx?scid=kb;en-
us;316317) ie a compiler error saying
c:\Program Files\Microsoft Visual Studio .NET\Vc7
\PlatformSDK\Include\ShObjIdl.h(9528) : error
C2872: 'IXMLDOMDocument' : ambiguous symbol
could be 'c:\Program Files\Microsoft Visual
Studio .NET\Vc7\PlatformSDK\Include\MsXml.h(1845) :
IXMLDOMDocument'
or 'c:\MAC\Reader\src\APP\AppComponent\Debug\msxml3.t
lh(2965) : MSXML2::IXMLDOMDocument'

but the solution explained on Microsfot website doesn't
work for me, (still suppress some errors, but it doesn't
suppress them all)

Any ideas ?

I'm using VC7, and the program used to be compiled under
VC5 or VC6.
thanks for help,
Luc
Nov 16 '05 #1
1 3771
Can you post a small sample code that generates the error?
Are you including both MSXML and MSXML2 namespaces like below? Or use
#import with no_namespace?

using namespace MSXML;
using namespace MSXML2;
--
Silviu Guea, Visual C++ Team
This posting is provided AS IS with no warranties, and confers no rights.

--------------------
| Content-Class: urn:content-classes:message
| From: "lucho" <lu***@bravobrava.com>
| Sender: "lucho" <lu***@bravobrava.com>
| Subject: Compiler Errors When You Use #import with XML in Visual C++ .NET
| Date: Tue, 19 Aug 2003 14:46:51 -0700
| Lines: 27
| Message-ID: <05****************************@phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcNmm2YD3ndgvsOrSFmJ3A5yCHLa4w==
| Newsgroups: microsoft.public.dotnet.languages.vc
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vc:27382
| NNTP-Posting-Host: TK2MSFTNGXA11 10.40.1.163
| X-Tomcat-NG: microsoft.public.dotnet.languages.vc
|
| Hi everyone,
| I have the same problem as described under Q316317
| (http://support.microsoft.com/default.aspx?scid=kb;en-
| us;316317) ie a compiler error saying
| c:\Program Files\Microsoft Visual Studio .NET\Vc7
| \PlatformSDK\Include\ShObjIdl.h(9528) : error
| C2872: 'IXMLDOMDocument' : ambiguous symbol
| could be 'c:\Program Files\Microsoft Visual
| Studio .NET\Vc7\PlatformSDK\Include\MsXml.h(1845) :
| IXMLDOMDocument'
| or 'c:\MAC\Reader\src\APP\AppComponent\Debug\msxml3.t
| lh(2965) : MSXML2::IXMLDOMDocument'
|
| but the solution explained on Microsfot website doesn't
| work for me, (still suppress some errors, but it doesn't
| suppress them all)
|
| Any ideas ?
|
| I'm using VC7, and the program used to be compiled under
| VC5 or VC6.
|
|
| thanks for help,
|
|
| Luc
|
Nov 16 '05 #2

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

Similar topics

6
by: paul calvert | last post by:
I hope somewhere here has encountered and solved a similar problem in the past. 1) on a new Win2000 PC: installed Visual C++ 6.0 download & install single file Service Pack 5.0 2) try to...
10
by: Bjorn | last post by:
I'm using interfaces in C++ by declaring classes with only pure virtual methods. If then someone wants to implement the interface they needs to inherit from the class. If the implementing class...
16
by: pj | last post by:
(Was originally, probably wrongly, posted to the vc subgroup.) (This doesn't appear to be a c# problem, but a problem with a bug in the Visual Studio c# compiler, but, any help will be welcome...)...
1
by: Ayende Rahien | last post by:
reparing resources... Updating references... Performing main compilation... error CS0583: Internal Compiler Error (0xc0000005 at address 53168B12): likely culprit is 'BIND'. An internal...
10
by: Jonathan Wilson | last post by:
Firstly, to get msvcrt.lib, install the .NET framework SDK. The version of msvcrt.lib included there is the exact same one as comes with Visual Studio ..NET 2003. There are some other things that...
5
by: rawCoder | last post by:
Hi All, In Visual Basic .NET , your function definition might requirre you to return a value but (accidently/intentionally) you dont put any 'return value' in the function. In this case VB...
31
by: Mark Dufour | last post by:
Hi all, I have recently released version 0.0.20 and 0.0.21 of Shed Skin, an optimizing Python-to-C++ compiler. Shed Skin allows for translation of pure (unmodified), implicitly statically typed...
1
by: kvarada | last post by:
Hello Experts, I am building my application on WinNT.4.0_i386_MSVC.7.1 platform. When I build the application on a stand alone machine, it builds fine. But when I build the same application from a...
3
by: Rene | last post by:
Hello to all! For a long time I have been "fighting" a problem compiling an OpenGL program which uses GLUT. First I have put a question in a Watcom group (I want to use this compiler) to which I...
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
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
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: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.