I want use a DLL (developed in C++) in WinDev application , my DLL works fine with C# code and i can call any method in there , however with Windev i can successfuly load the DLL using :
hInst = LoadDLL("MyDLL.DLL")
but when i want invoke a method this way :
CallDLL32("MyDLL", "GetCode", data, res1, res2)
i got an error "Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
the method signature that i want call is like this way :
string GetCode([IN] byte[] Data, [OUT] string res1, [OUT] string res2)