C# calling C++ DLL tries to write to protected memory

Reason: The parameter type of the declared function in C# is inconsistent with the parameter type of the C++ function. After referring to the parameter type comparison table of C# and C++, modify the corresponding parameter type, and the problem is solved

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324981207&siteId=291194637