Subject string and DLL
Author Geomastique
hello,
my trouble is to read a string field in a function made in DLL with delphi.
this is a small exemple to explain the trouble

- in firebird, i have a table with a text field like :
name of the field : "myfield"
type : CHAR(1)

- in delphi i write a function that need a parameter:

function myfunction ( myvalue : Pchar) : Pchar;
begin
myfunction := 'my text value is : ' + myvalue;
end;

- with a sql query in firebird (after declare the dll of course), i write :
select myfunction(myfield) as myname from ..... etc etc

but the string value in my firebird table is not read correctly. why ?
ther is no trouble with numeric field !

thanks.