Our new official repo is on github
LCD Smartie version 5.6 is released!
Download it now: https://github.com/LCD-Smartie/LCDSmartie/releases

(Important) notice about new Delphi versions

Discussing issues that occur during plugin development.

Moderators: _X7JAY7X_, caesar, IFR, mattcro, limbo

Post Reply
RichardG
Posts: 9
Joined: July 17th, 2009, 5:15 pm

(Important) notice about new Delphi versions

Post by RichardG »

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:

Code: Select all

Function function1(param1:pchar;param2:pchar):pchar; stdcall;
begin
Result := 'foobar';
end;
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.

Post Reply