Examining bytes returned from an ATL component
-
Hi, I am kind of a newbie in VB. The following is the problem description. I have an ATL component which has the following interface method. HRESULT GetBytes([out,retval] VARIANT* pvByteArray); As the name suggest the variant contains a byte array only. Now, I am trying to use this from VB, so that I may be able to examine the bytes returned. I have tried the folowing VB code - ///////////////////////////// Dim pkt As New SPGet Dim bytes As Variant Set bytes = pkt.GetBytes ///////////////////////////// But I get a Type Mismatch error. Can somebody show me how I may do this. Thank you Aby
-
Hi, I am kind of a newbie in VB. The following is the problem description. I have an ATL component which has the following interface method. HRESULT GetBytes([out,retval] VARIANT* pvByteArray); As the name suggest the variant contains a byte array only. Now, I am trying to use this from VB, so that I may be able to examine the bytes returned. I have tried the folowing VB code - ///////////////////////////// Dim pkt As New SPGet Dim bytes As Variant Set bytes = pkt.GetBytes ///////////////////////////// But I get a Type Mismatch error. Can somebody show me how I may do this. Thank you Aby