DLL written in Delphi causes GPF
I have written a DLL in Delphi which is called from Paradox. Below is
the declaration of the function that I export.
function ShowOutline(Database : PChar; Filter, Method, X, Y, W, H,
Default : Integer; Title : PChar) : PChar; export;
The function gets called OK, but as soon as the function exits (i.e.
returns the result) the DLL causes a GPF.
I tried to change the PChar parameters to type String as follows :
function ShowOutline(Database : String; Filter, Method, X, Y, W, H,
Default : Integer; Title : String) : String; export;
The DLL now causes a GPF as soon as I call the function from Paradox.
When I call the DLL from Delphi, however, everything works fine.
I don't have too much time to waste on this one. Any help would be
greatly appreciated.
Thanks
Jerrie