|
-
Sep 28th, 2001, 05:30 AM
#1
Thread Starter
New Member
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:
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
-
Sep 29th, 2001, 03:22 AM
#2
Member
I was also getting the same error msg
i was using
Microsoft XML, v2.6
i changed that to
Microsoft XML, version 2.0
and i dont know how but my problem got solved. 
just give a try by changing the lib refered
-
Oct 1st, 2001, 10:46 AM
#3
Thread Starter
New Member
I gave it a try with both versions 2.6 and 2.0 with no luck. Any other suggestions?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|