Thread: Pass Param out in Activex

  1. #1
    Registered User
    Join Date
    May 2008
    Posts
    3

    Question Pass Param out in Activex

    i write a axtivex control . this control has a fuction (Ex: SignData Function) and I want pass Data block which is result of this fuction out as a variant . but i can't do it . please suggest a solution :
    detail :
    Code:
    VARIANT_BOOL CCSPACOSACTIVEXCtrl::SignData(VARIANT &DataIn, LONG DataInLenth, VARIANT &DataOut, LONG* DataOutLenth)
    
    {
        BYTE* result;
        ...
        // i want to pass result to DataOut 
    }
    from other Application (Dotnet , website with java script code) i Call this function and desire get result data in DataOut variant

  2. #2
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,210
    So set DataOut to whatever you want to send. What is the issue?

  3. #3
    Registered User
    Join Date
    May 2008
    Posts
    3
    I wan write a function in Activex which following desire

    Byte[] signData(Byte[] datain , int len)

    datain is array of Byte and Data out is array of Byte too
    how to do it ?
    thanks you very much

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. set param in activeX control
    By sgh in forum C++ Programming
    Replies: 0
    Last Post: 03-25-2009, 02:54 AM
  2. Speed test result
    By audinue in forum C Programming
    Replies: 4
    Last Post: 07-07-2008, 05:18 AM
  3. NAQ: Everything you never wanted to know about CPP
    By evildave in forum C Programming
    Replies: 21
    Last Post: 12-12-2005, 10:56 AM
  4. Passing parameters from VB to C++ through ActiveX DLL
    By torbjorn in forum Windows Programming
    Replies: 0
    Last Post: 12-10-2002, 03:13 AM
  5. pass several arguments to LPVOID param of CreateThread
    By Echidna in forum Windows Programming
    Replies: 4
    Last Post: 05-05-2002, 10:18 AM