(Important) notice about new Delphi versions
Posted: July 17th, 2009, 5:23 pm
On Delphi 2006 and later, no matter if you use PAnsiChar or PWideChar (default mapping for PChar on the unicode versions, 2006 and later), Smartie only displays the last character of function outputs if you build the DLL with these versions. I tested this on Delphi 2009.
Example:
On Delphi 2009, the function returns "r", on Delphi 7 it returns "foobar". Same for PAnsiChar.
One more reason to revive my Delphi 7 install.
Example:
Code: Select all
Function function1(param1:pchar;param2:pchar):pchar; stdcall;
begin
Result := 'foobar';
end;
One more reason to revive my Delphi 7 install.