G
Gabe Covert
I'm attempting to implement a 3rd party COM library in a C# application,
and have run up against the following problem in my development. I am
trying to use a particular method call of an object, but it looks like
tlbimp has imported the call in a way that I can't figure out how to get
my data in.
SDK:
VARIANT_BOOL ReadMemory(unsigned char* Data, long DataSize);
IL file:
.method public hidebysig newslot virtual instance bool
ReadMemory([in] unsigned int8& Data,
[in] int32 DataSize) runtime managed internalcall
{
.override [Class]::ReadMemory
} // end of method [Class]::ReadMemory
The Data parameter is supposed to be the contents of an image file (JPG,
etc) read into memory, and in my application is declared as byte[]. The
IL call has it as a pointer to a byte. How can I change the IL file to
the correct type so that I can send in a byte[]?
Thanks!
Gabe
and have run up against the following problem in my development. I am
trying to use a particular method call of an object, but it looks like
tlbimp has imported the call in a way that I can't figure out how to get
my data in.
SDK:
VARIANT_BOOL ReadMemory(unsigned char* Data, long DataSize);
IL file:
.method public hidebysig newslot virtual instance bool
ReadMemory([in] unsigned int8& Data,
[in] int32 DataSize) runtime managed internalcall
{
.override [Class]::ReadMemory
} // end of method [Class]::ReadMemory
The Data parameter is supposed to be the contents of an image file (JPG,
etc) read into memory, and in my application is declared as byte[]. The
IL call has it as a pointer to a byte. How can I change the IL file to
the correct type so that I can send in a byte[]?
Thanks!
Gabe