472,958 Members | 2,541 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,958 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 3752
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: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...

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.