Results 1 to 3 of 3

Thread: Cannot pass XML doc using Callback

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2001
    Posts
    7

    Question 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

  2. #2
    Member
    Join Date
    Sep 2001
    Posts
    48
    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

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2001
    Posts
    7
    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
  •  



Click Here to Expand Forum to Full Width