Cannot pass XML doc using Callback
Hi all,
I have an ActiveX exe running as my server and a standard exe as my client. I have setup a standard callback between the two (copied from the Coffee2 example in msdn).
My callback is defined as follows in an ActiveX dll (the interface definition)
Code:
Public Sub StationSoftwareEvent(ByVal stationMsg As FreeThreadedDOMDocument)
End Sub
In my client (which is receiving this document) I append the document to a local copy using the following code:
Code:
mtmpDOC.childNodes(0).appendChild stationMsg.childNodes(0).childNodes(0)
Where mtmpDOC is also created as a FreeThreadedDOMDocument
I however get the following error message when the above line tries to execute:
Quote:
Run-time error '-2147024809 (80070057)':
the parameter is incorrect.
I am using MSXML v3 sp1 with ADO 2.6 (the xml component didn't seem to work without it installed).
I have sucessfuly done the above when I include all the code in one project and do not use callbacks or events. So what am I missing when I use callbacks?
Any help would be appreciated.
Regards,
Jarrod