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
|
interface
|
||||||
|
|
||||||
{$linklib 'fdb'}
|
procedure SendText(text: pchar);cdecl; external 'fdb';
|
||||||
|
procedure SendText(text : string);
|
||||||
uses
|
|
||||||
begui;
|
|
||||||
|
|
||||||
procedure SendText(text: pchar);cdecl; external;
|
|
||||||
|
|
||||||
procedure force;
|
procedure force;
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
|
procedure SendText(text : string);
|
||||||
|
var
|
||||||
|
local : string;
|
||||||
|
begin
|
||||||
|
local := text + #0;
|
||||||
|
SendText(@local[1]);
|
||||||
|
end;
|
||||||
|
|
||||||
procedure force;
|
procedure force;
|
||||||
begin
|
begin
|
||||||
writeln('force');
|
writeln('force');
|
||||||
@@ -25,4 +29,4 @@ initialization
|
|||||||
finalization
|
finalization
|
||||||
SendText('App end');
|
SendText('App end');
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
|||||||
Reference in New Issue
Block a user