[Openroad-users] WindowsAPI call to GetLocalTime
Fabian Anderson
fabian.anderson at Fintechnix.com
Wed Apr 23 08:45:31 EST 2008
Hi Gareth,
Where an API specifies a STRUCT as a parameter, you should
be able to declare a LongByteObject to pass to the API. Upon return,
you should have a binary string containing the structure. It is most
useful when you have to pass a structure returned from one API call into
another API call. If you have to process the returned binary string to
something meaningful, you need a function to strip out the Nth byte of
the array to get the required byte value. NB: the .Value attribute
produces a VARCHAR representation of the string. It is handy to create
a utility class to handle binary masking and bit masks with this
approach.
No-one has indicated if packaging other DLLs with eClient is viable.
This would be the preferred approach for me. i.e. Create a new 3GL
library that calls the API and returns data in simple parameters.
Microsoft Visual C++ toolkit is a free Windows compiler you can use to
do this.
Regards,
Fabian.
________________________________
From: openroad-users-bounces at peerlessit.com
[mailto:openroad-users-bounces at peerlessit.com] On Behalf Of
gareth.2.edwards at bt.com
Sent: Wednesday, 23 April 2008 12:38 AM
To: openroad-users at peerlessit.com
Subject: Re: [Openroad-users] WindowsAPI call to GetLocalTime
>Sorry I haven't used this API before, but you should be able to get it
working via the LongByteObject (which I believe is mapped to a BSTR for
3GL calls)
I'd be interested to know how this approach works. Could you explain
further Fabian please.
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
Specialist providers of back and front office systems for the financial services industry.
Featuring: Fintechnix(r)
Disclaimer:
Notice: This message contains privileged and confidential information intended only for the use of the addressee named above. If you are not the intended recipient of this message you are hereby notified that you must not disseminate, copy or take any action in reliance on it.
Any views expressed in this message are those of the individual sender,except where the sender specifically states them to be the views of Fintechnix Pty Ltd.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.peerlessit.com/pipermail/openroad-users/attachments/20080423/dfe9c203/attachment.html
More information about the Openroad-users
mailing list