I'm creating a c# dll library to scan process memory. I have static method:
int searchASCII(int pid, SByte[] text, int pos)
{
ReadProcessApi RApi = new ReadProcessApi(pid, pos);
return RApi.ASCIIScan(text);
}
and want to make it usable in Visual C++ Managed.
Which type should be used for text param, if I want to call method like this in c++:
searchASCII((int)pid, (char[])text, (int)position)
?
In current scenario I get error:
"cannot convert parameter from 'char [6]' to 'cli::array<Type,dimension> ^' "