I am creating a C # dll library to scan process memory. I have a 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 suitable for use in Visual C ++ Managed. What type should be used for the text parameter if I want to call a method like this in C ++
searchASCII((int)pid, (char[])text, (int)position)
:?
In the current scenario, I get an error message:
"cannot convert parameter from 'char [6]' to 'cli::array<Type,dimension> ^' "
source
share