CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Posts
    22

    Setting system clock

    Hi all,

    Wondering how to set the system clock from an MFC prog? I have a dialog with edit boxes for day, month, year, hour, min, sec, and radios for AM and PM. Anyone know how to do this?

    Thanks in advance.

    Regards,
    Chris

    "No! Try not. Do...or do not. There is no try."
    - Yoda, Jedi Master

  2. #2
    Join Date
    Jun 1999
    Posts
    315

    Re: Setting system clock

    BOOL SetSystemTime(
    CONST SYSTEMTIME *lpSystemTime // pointer to system time to set
    );



    miked

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured