orionmetrics
New member
I have a simple dll which works in hescript if I have a procedure and simply display the value in a messagebox - simply returns an ip address in unsigned long integer format.
However when I try to convert my hescript procedure into a function so it returns the long integer back to php it is always returning 0 when instead I want it to return the value of HardwareIP(). The dll part is working fine, as tested it with a procedure and a simple call to messagebox.
My hescript is below… CardAddress is the external dll function.
function HardwareIP: Longint; stdcall; external “ipaddress-dll.dll” name ‘CardAddress’;
function TestDLL(void): Longint;
var TestDLL: Longint;
begin
TestDLL := HardwareIP();
end;
Thanks for any help. Not a criticism as such, but I suggest the help section needs more information on coding hescript functions, as nowhere could I find information on returning values.
However when I try to convert my hescript procedure into a function so it returns the long integer back to php it is always returning 0 when instead I want it to return the value of HardwareIP(). The dll part is working fine, as tested it with a procedure and a simple call to messagebox.
My hescript is below… CardAddress is the external dll function.
function HardwareIP: Longint; stdcall; external “ipaddress-dll.dll” name ‘CardAddress’;
function TestDLL(void): Longint;
var TestDLL: Longint;
begin
TestDLL := HardwareIP();
end;
Thanks for any help. Not a criticism as such, but I suggest the help section needs more information on coding hescript functions, as nowhere could I find information on returning values.
Last edited: