I'm trying to pass a pointer value to Delphi, but it seems that DBPro can only pass variable types. I need to do something like this...
function PtrTest(temp: integer): integer; cdecl;
var
ptr: PInt;
begin
ptr := temp;
end;
But it won't let me due to incompatable types. Is there any way of passing an address straight into a pointer like so...
function PtrTest(ptr: PInt): integer; cdecl;
begin
end;
Or any way of assigning a variable's value to the pointer address, like the above example.
Cheers.
Isn't it? Wasn't it? Marvellous!