[Openroad-users] WindowsAPI call to GetLocalTime

gareth.2.edwards at bt.com gareth.2.edwards at bt.com
Wed Apr 23 20:13:45 EST 2008


 >Where an API specifies a STRUCT as a parameter, you should be able to
declare a LongByteObject to pass to the API.   
 
I tried this with the following code and get a runtime error.
 
DECLARE
 LBO = LongByteObject;
BEGIN
 
    CALLPROC GetLocalTime (BYREF(LBO));
 
=====
 
E_EO001B Objects and arrays can not be passed BYREF to 3GL procedures.
    Parameter number 1 to the 3GL procedure 'GetLocalTime' is an object
or
    array value. Objects and arrays can not be passed BYREF to 3GL
    procedures.  You will have to remove the BYREF keyword from the
    parameter list to this procedure.
 
=====

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.peerlessit.com/pipermail/openroad-users/attachments/20080423/8866cfad/attachment.html 


More information about the Openroad-users mailing list