Writing DLL in Delphi, passing strings
Posted: Tue Oct 05, 2010 7:05 am
Hi,
this procedure
procedure MyStringFunction(var AString: PAnsiChar); stdcall;
begin
AString := 'some string';
end;
exported in a DLL, works with Installaware "Call DLL" - BUT! the word "some string" is not returned - just garbage. What am I doing wrong?
/Anders
this procedure
procedure MyStringFunction(var AString: PAnsiChar); stdcall;
begin
AString := 'some string';
end;
exported in a DLL, works with Installaware "Call DLL" - BUT! the word "some string" is not returned - just garbage. What am I doing wrong?
/Anders