On Wednesday 26 May 2004 22:23, Bruce Bowler wrote:
> First, I'm running a hopelessly ancient version (5.0.1) of LabView.  As
> soon as I can get the boss to spring for it I'll upgrade but until then,
> I'm stuck...
>
> I'm trying to write a VI that will return the timezone the computer clock
> is set to.  There's a "nifty" winAPI call called GetTimeZoneInformation
> that includes the "bias" which is what I'm looking for, but how to call
> it?  It wants a structure as an argument and I can't figure out how to set
> it up to do what I want...
>
> What I've tried so far, is to create a byte array that's 46 bytes long (as
> near as I can tell, that's the size of the structure.)  Converted that to
> a string, passed the string to the "call library" function and wired the
> output to a string indicator.  When I run it, I either get an error
> complaining about gnrclist.c, line 192 or the dreaded "illegal operation".
>  Either way, LabView goes away...
>
> Any advice?
> Thanks!
> Bruce

Yepp. Did you set the call library node to 'stdcall (WINAPI)' calling 
convention?

As I don't have 5.0 on my machines anymore, I can just show you what I did, 
see the attachments (probably only in the private mail, though).

Greetings,
        J�rg
-- 
Leading SW developer  - S.E.A GmbH
Mail: [EMAIL PROTECTED]
WWW:  http://www.sea-gmbh.com




Reply via email to