On Thu, 27 May 2004 11:53:42 +0200
"Rolf Kalbermatter" <[EMAIL PROTECTED]> put fingers to keyboard
and said:
> "Bruce Bowler" <[EMAIL PROTECTED]> 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...
>
> Ogh, 5.0.1 wasn't the most stable one. 5.1.1 was in my experience quite
> better. Also be aware that while upgrading applications from one version
> to the next is usually a quite easy step, upgrading from 5.0 to 7.1 will
> have some good chances of rough bumps on the road.
Yep, but when you work for a small grant funded non-profit, you deal with
what they give you. At this point there's no money in the budget for an
upgrade...
> >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".
>
> 46 bytes is definitely not enough!!!!!! Just look at this:
>
> typedef struct _TIME_ZONE_INFORMATION {
> 4 bytes LONG Bias;
> 32 * 2 bytes WCHAR StandardName[32];
> 8 * 2 bytes SYSTEMTIME StandardDate;
> 4 bytes LONG StandardBias;
> 32 * 2 bytes WCHAR DaylightName[32];
> 8 * 2 bytes SYSTEMTIME DaylightDate;
> 4 bytes LONG DaylightBias;
> } TIME_ZONE_INFORMATION,
Yep, that's a little different than the description I had found, which had
me believing that the 2 "name" items were pointers to strings, not the
strings themselves.
Anyway, it's working now, thanks for your help...
Bruce
--
+-------------------+---------------------------------------------------+
Bruce Bowler | Whoever named it necking was a poor judge of
1.207.633.9600 | anatomy. ... - Groucho Marx
[EMAIL PROTECTED] |
+-------------------+---------------------------------------------------+