At 6:52 AM -0700 5/23/99, Michael Hutchens wrote:
>ULong seconds;
>seconds=TimGetSeconds();
>Which I think should return into seconds some large number representing the
>number of seconds between 1/1/1904 and now, returns 2 instead.
>
>Further, TimSetSeconds(seconds) returns seconds=0.
>
>What is going on?
How are you checking the values?
My guess is that you're in the debugger, and you're looking at values in
the "variables" window.
In that case, it helps to know that the compiler uses registers to hold
some of your local variables in a function, and may re-use the same
register for multiple variables, if their uses do not overlap.
As a result, you can't absolutely rely on the values the debugger displays
unless you're stopped right at the line of code that uses a variable. You
might be better off inserting some DbgMessage calls to display the values
as the program is running.
If that's not it, I'm stumped. The functions you name are very stable.
--Bob