Csharp Client, C++ COM interface
-
Hi, not sure if this is the correct place to post this question... I have a C++ COM interface method:
SomeMethod(BSTR inString, IUnknown *inCommand, IUnknown **outResult) { ... IXMLDOMElementPtr inCommandPtr = inCommand; ... }
I am trying to call it from a c# client app, but I am not sure what I am supposed to pass in for the second param (inCommand). I tried adding a reference to microsoft.XML v6.0 COM. Then doing the following:... using MSXML2; ... public void MethodWrapper( string command ) { string dummy = "test string"; MSXML2.IXMLDOMDocument2 inCommand = new MSXML2.DOMDocumentClass(); inCommand.loadXML( command ); _theCOMObj.SomeMethod(dummy, inCommand.documentElement); } ...
I am getting the following error: It is an error to mix objects from different versions of MSXML. Does anyone have any clue how to fix this? Any suggestion would be greatly appreciated.----------------- Genaro
-
Hi, not sure if this is the correct place to post this question... I have a C++ COM interface method:
SomeMethod(BSTR inString, IUnknown *inCommand, IUnknown **outResult) { ... IXMLDOMElementPtr inCommandPtr = inCommand; ... }
I am trying to call it from a c# client app, but I am not sure what I am supposed to pass in for the second param (inCommand). I tried adding a reference to microsoft.XML v6.0 COM. Then doing the following:... using MSXML2; ... public void MethodWrapper( string command ) { string dummy = "test string"; MSXML2.IXMLDOMDocument2 inCommand = new MSXML2.DOMDocumentClass(); inCommand.loadXML( command ); _theCOMObj.SomeMethod(dummy, inCommand.documentElement); } ...
I am getting the following error: It is an error to mix objects from different versions of MSXML. Does anyone have any clue how to fix this? Any suggestion would be greatly appreciated.----------------- Genaro
Well, I'd post the question in the correct forum for starters...
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001 -
Well, I'd post the question in the correct forum for starters...
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001 -
You're cannot possibly be serious...
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001 -
You're cannot possibly be serious...
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001I would say that "General" is a reasonable place to post for this question.
Kevin
-
I would say that "General" is a reasonable place to post for this question.
Kevin
Kevin McFarlane wrote:
I would say that "General" is a reasonable place to post for this question.
Same here. Maybe Chris should call it General Programming Discussion. It would cover this post and others such as people asking what programming language they should learn, etc...
Some people have a memory and an attention span, you should try them out one day. - Jeremy Falcon