Hello,
I want to make a declaration of an external function,but I can't do it.
this is my Delphi declaration,which doesn't compile.
procedure Encode(input:byte^;output:byte^;size:DWORD);cdecl;external 'blowfish.dll';
This is my C# declaration,which works.
[DllImport("blowfish.dll")]
public static unsafe extern void Encode(byte* input, byte* output, UInt32 size);
My problem:the compiler exprects "(" after byte^ ,because of the ^.If I make a type mybyte= byte^; then how do I call the function with the first member in the byte array - it then cannot compile,because the array isnt type "myByte"?