Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Mar 2004
    Location
    Tokyo Japan
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to handle IDispatch passing to COM method

    Hi all,

    Could anybody tell me how to handle IDispatch passing
    to COM method created by ATL?

    ### JScript ###
    var x = [ "item 1", "item 2", "item 3" ];
    oActiveX.myMethod(x);

    ### COM ###
    myMethod(VARIANT x)
    {
    if( x.vt = VT_IDISPATCH )
    {
    IDispatch *pDispatch = x.pdispVal;

    // Please tell me how to get "item 1", "item 2", "item 3"
    // via pDispatch ???
    }

    }


    Thank you.

    gordon

  • #2
    Regular Coder
    Join Date
    Feb 2003
    Posts
    638
    Thanks
    0
    Thanked 0 Times in 0 Posts

    This might be related, somehow:

    Microsoft Windows Script Interfaces
    IDispatchEx Interface
    hmm... ?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •