Hi!
I am converting a few PowerBuilder apps to C# but I am not sure how to convert dlls from PowerBuilder to C#.
One of my dlls in PB is defined as FUNCTION longptr Decrypt(ref longptr decryptMem) LIBRARY "DecryptDLL.dll" alias for "Decrypt;Ansi"
I call this function in PB like so, LocalErrorCode = Decrypt(decryptMem)
, where decryptMem
is a longptr and LocalErrorCode
is an int.
And then in C# I have it defined as
LocalErrorCode = (int)Decrypt(ref decryptMem);
where decryptMem
is a long and LocalErrorCode
is an int.