T
Trevor
I have a C++ COM object with an event function:
HRESULT OnEvent([out] BYTE* pData, LONG lSize);
When I import this in my C# project I end up with a generated function like
this:
void OnEvent(byte, int );
How do I treat 'byte pData' as a pointer in C#? The COM object needs a way
to pass a block of binary data back to the application. It would ideally be
compatible with C++ and C#. Any advice is appreciated.
HRESULT OnEvent([out] BYTE* pData, LONG lSize);
When I import this in my C# project I end up with a generated function like
this:
void OnEvent(byte, int );
How do I treat 'byte pData' as a pointer in C#? The COM object needs a way
to pass a block of binary data back to the application. It would ideally be
compatible with C++ and C#. Any advice is appreciated.