Hi, I will really appreciate if someone cans help me with this:
I have a managed c++ class that I am calling from C#. The declaration of a function in this class is:
bool CanAddTemplate( unsigned char* template, HRESULT rc, bool bInteractive)
When calling this function from c# I have:
byte[] template = new Byte[1632];
bresult = CIdentification Set.CanAddTempl ate(template, rc, true);
When compiling I am getting the error:
Argument 1: cannot convert from 'byte[]' to 'byte*'
What is the right type of data in c#?
Thanks!
I have a managed c++ class that I am calling from C#. The declaration of a function in this class is:
bool CanAddTemplate( unsigned char* template, HRESULT rc, bool bInteractive)
When calling this function from c# I have:
byte[] template = new Byte[1632];
bresult = CIdentification Set.CanAddTempl ate(template, rc, true);
When compiling I am getting the error:
Argument 1: cannot convert from 'byte[]' to 'byte*'
What is the right type of data in c#?
Thanks!
Comment