MSXML conflicting issues trying to port VC6 project to VC8.
- From: murrayh@xxxxxxxxx
- Date: 23 May 2006 19:19:11 -0700
Hello,
Trying to port a large COM application from VC6 to VC8, but its usage
of MSXML3 is giving me some nasty trouble :(.
The error:
d:\project\common\XMLPropertiesToStringConverter.h(24) : error C2872:
'IXMLElement' : ambiguous symbol
could be 'c:\program files\microsoft visual studio
8\vc\platformsdk\include\msxml.h(11382) : IXMLElement'
or 'd:\project\main\debug\msxml3.tlh(1675) :
MSXML2::IXMLElement'
Background information:
* XMLPropertiesToStringConverter.h belongs to a DLL (common.dll)
* common.dll compiles (I did have to add MSXML2:: everywhere though)
* The 'main' project that creates the executable includes
XMLPropertiesToStringConverter.h
* Line 24 of XMLPropertiesToStringConverter.h is "#import <msxml3.dll>"
* I get a heaps of the above error, with each of them pointing to the
line 24 import statement.
Things I've tried:
* Replacing c:\program files\microsoft visual studio
8\vc\platformsdk\include\msxml.h with VC6.0's.
This caused an error in generating 'main's precompiled header,
specifically shobjidl.idl referencing an undefined XML related object.
* "#import <msxml3.dll> rename_namespace("MY_MSXML2")"
No difference
Other:
* 'main' processes "C:\Program Files\Microsoft Visual Studio
8\VC\PlatformSDK\include\msxml.idl" when generating its precompiled
header, which I think has something to do with this.
'main's stdafx.h includes the following headers:
#include <afx.h>
#include <afxdisp.h>
#include <comdef.h>
#include <atlbase.h>
#include <afxmt.h>
#include <winsock2.h>
#include <afxsock.h>
#include <atlcom.h>
#include <Mmsystem.h>
I'm going to keep slugging away and see if I can come dig up something,
but yeah any help would be much appreciated ;).
Cheers,
Murray
.
- Follow-Ups:
- Re: MSXML conflicting issues trying to port VC6 project to VC8.
- From: William DePalo [MVP VC++]
- Re: MSXML conflicting issues trying to port VC6 project to VC8.
- Prev by Date: use bitmap template/iterator
- Next by Date: Re: MSXML conflicting issues trying to port VC6 project to VC8.
- Previous by thread: use bitmap template/iterator
- Next by thread: Re: MSXML conflicting issues trying to port VC6 project to VC8.
- Index(es):
Relevant Pages
|