New SendText function with a string parameter to forget PChar conversion...
Remove of unused uses
This commit is contained in:
@@ -2,17 +2,21 @@ unit fdblib;
|
||||
|
||||
interface
|
||||
|
||||
{$linklib 'fdb'}
|
||||
|
||||
uses
|
||||
begui;
|
||||
|
||||
procedure SendText(text: pchar);cdecl; external;
|
||||
procedure SendText(text: pchar);cdecl; external 'fdb';
|
||||
procedure SendText(text : string);
|
||||
|
||||
procedure force;
|
||||
|
||||
implementation
|
||||
|
||||
procedure SendText(text : string);
|
||||
var
|
||||
local : string;
|
||||
begin
|
||||
local := text + #0;
|
||||
SendText(@local[1]);
|
||||
end;
|
||||
|
||||
procedure force;
|
||||
begin
|
||||
writeln('force');
|
||||
|
||||
Reference in New Issue
Block a user