Sarath
2005-04-11 07:47:45 UTC
Hi all,
I am new to COM stuff.
I get the following errors during the linking step in my VC6.0 IDE:
error LNK2001: unresolved external symbol _CLSID_DOMDocument
error LNK2001: unresolved external symbol _CLSID_DOMDocument
error LNK2001: unresolved external symbol _IID_IXMLDOMDocument
My header includes the following code snippet:
#import "msxml4.dll"
using namespace MSXML2;
Few posts on the forum suggest to do this:
#include "msxml.h"
#define CLSID_DOMDocument __uuidof(DOMDocument)
#define IID_IXMLDOMDocument __uuidof(IXMLDOMDocument)
But when I try to use this code, I get the following error:
error C2872: 'DOMDocument' : ambiguous symbol
Pls let me know how to resolve this.
Thanks,
--sarath.
I am new to COM stuff.
I get the following errors during the linking step in my VC6.0 IDE:
error LNK2001: unresolved external symbol _CLSID_DOMDocument
error LNK2001: unresolved external symbol _CLSID_DOMDocument
error LNK2001: unresolved external symbol _IID_IXMLDOMDocument
My header includes the following code snippet:
#import "msxml4.dll"
using namespace MSXML2;
Few posts on the forum suggest to do this:
#include "msxml.h"
#define CLSID_DOMDocument __uuidof(DOMDocument)
#define IID_IXMLDOMDocument __uuidof(IXMLDOMDocument)
But when I try to use this code, I get the following error:
error C2872: 'DOMDocument' : ambiguous symbol
Pls let me know how to resolve this.
Thanks,
--sarath.