Set system time to a COleDateTime? 
Author Message
 Set system time to a COleDateTime?

How do I set the system time to a COleDateTime variable? The current
function
SetSystemTime requires a SYSTEMTIME const. I have version 4.0 Standard.

//////////////////////
// Dan a.k.a. QDude //
//////////////////////



Wed, 10 Jul 2002 03:00:00 GMT  
 Set system time to a COleDateTime?


Quote:
> How do I set the system time to a COleDateTime variable? The current
> function SetSystemTime requires a SYSTEMTIME const

there doesn't seem to be an off the shelf route. You need to fill the
members of the SYSTEMTIME struct the "hard" way one by one, using the
various COleDateTime::Getxxx methods

Sent via Deja.com http://www.deja.com/
Before you buy.



Thu, 11 Jul 2002 03:00:00 GMT  
 Set system time to a COleDateTime?
COleDateTime has a member GetAsSystemTime.

    SYSTEMTIME st ;
    myOleDateTime.GetAsSystemTime( st ) ;
    ::SetSystemTime( &st ) ;



Fri, 12 Jul 2002 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Setting system time.

2. Set System time question

3. Help setting System Time

4. How to set System Time on Windows NT?

5. Setting computer system time

6. Help setting System Time

7. setting system time

8. Set System Time

9. Setting system time

10. Set System time?

11. {Newbie] Setting system time from time_t

12. how to get time without COleDateTime?

 

 
Powered by phpBB® Forum Software