Hello, I have a DLL file written in Delphi. Here is one of its functions (the function is included in the 'export' clause):
function EncryptStr(TheStr: String): String; stdcall; export;
Result := 'asd';
Now I want to use this funcion in VB.
Public Declare Function EncryptStr Lib "InstStore" (ByRef TheStr As String) As String
And I want to use it.
But an error message is shown "Bad DLL calling convention". Why?