Quote Originally Posted by Morbane View Post
So I tried this:
Code:
                    if(buf1 == buf2)
 ...
But it doesn't work - the logic is messed up somehow.
Of course it doesn't!
Because you compare the values of two pointers which are absolutely different!
You have to compare SYSTEMTIME objects (rng[0] and rng[1] in your case)