none
passing BYTE* to SP as parameter using VARINT

    Question

  • Hi,

    My application talks to SQL server using msado15 dll. In one of the SPs in it have VARBINARY type of input parameter but using VARIANT, i dont know how to pass a LPBYTE to the SP..


    Regards
    Harsh


    Please Mark reply as "Answered" if they helped

    Tuesday, February 07, 2012 6:02 PM

Answers

  • I'm pretty confident you could use a VARIANT which is a SAFEARRAY of BYTES. You can use the CComSafeArray class to help construct this. See this note.
    • Marked as answer by Harsh Shankar Thursday, February 09, 2012 4:12 PM
    Tuesday, February 07, 2012 7:59 PM

All replies

  • I'm pretty confident you could use a VARIANT which is a SAFEARRAY of BYTES. You can use the CComSafeArray class to help construct this. See this note.
    • Marked as answer by Harsh Shankar Thursday, February 09, 2012 4:12 PM
    Tuesday, February 07, 2012 7:59 PM
  • Hi Brian,

    Thanks for the help.. worked for me..


    Regards
    Harsh


    Please Mark reply as "Answered" if they helped

    Thursday, February 09, 2012 4:14 PM