View Single Post
Old 05-06-2011, 05:59 AM   #2
DPJohn
 
Posts: n/a
Default Interesting question, to see to know!

DLL has the following functions

function test: Variant;
var
s: string;
begin
s := 'dfkdj ';
Result := s;
end;

Internal use in my DLL, no problem.
However, I use another application, there will be Invalid pointer operation error.
Calling code is as follows:

function test: Variant;
var
s: string;
begin
s := 'dfkdj ';
Result := s;
end;

(Hope to help answer)







------------------------------------------------------------------------------




If you want to view more fashionable omega speedmaster and
watches bell & ross. Please login http://www.grinspoon.com.au/forum/in...howuser=258892
  Reply With Quote

Sponsored Links