G
Guest
I am using a COM interface decalared as follows from VB.Net
interface ISample : IDispatch
{
[id(1), helpstring("method WriteSample")] HRESULT Write(long* pBuffer )
}
In VB.Net, I get the address from the call below and pass it to the "Write"
function which is declared as
Write( Byref pBuffer as Integer )
.....
Dim ptrBuffer As Integer = playbackArrayHandle.AddrOfPinnedObject.ToInt32
obj.Write( ptrBuffer )
However, the COM object receives the pointer as a long** or a
pointer-to-pointer to a long. How can I fix this?
Thanks
Hemal
interface ISample : IDispatch
{
[id(1), helpstring("method WriteSample")] HRESULT Write(long* pBuffer )
}
In VB.Net, I get the address from the call below and pass it to the "Write"
function which is declared as
Write( Byref pBuffer as Integer )
.....
Dim ptrBuffer As Integer = playbackArrayHandle.AddrOfPinnedObject.ToInt32
obj.Write( ptrBuffer )
However, the COM object receives the pointer as a long** or a
pointer-to-pointer to a long. How can I fix this?
Thanks
Hemal