Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. ATL / WTL / STL
  4. SYSTEMTIME

SYSTEMTIME

Scheduled Pinned Locked Moved ATL / WTL / STL
tutorial
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    VVVimal
    wrote on last edited by
    #1

    Hi Can anyone tell how to compare systemtime. SYSTEMTIME t1; SYSTEMTIME t2; GetSystemTime(&t1); GetSystemTime(&t2); Is this a good approach t1==t2 Thanks

    S B 2 Replies Last reply
    0
    • V VVVimal

      Hi Can anyone tell how to compare systemtime. SYSTEMTIME t1; SYSTEMTIME t2; GetSystemTime(&t1); GetSystemTime(&t2); Is this a good approach t1==t2 Thanks

      S Offline
      S Offline
      Stuart Dootson
      wrote on last edited by
      #2

      No. Because SYSTEMTIME doesn't have an operator== defined for it. You can define one.

      bool operator==(const SYSTEMTIME& left, const SYSTEMTIME& right)
      {
      // Compare every element of left with every element of right
      }

      BTW - wrong forum - SYSTEMTIME has nopthing to do with ATL, WTL or STL

      Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

      1 Reply Last reply
      0
      • V VVVimal

        Hi Can anyone tell how to compare systemtime. SYSTEMTIME t1; SYSTEMTIME t2; GetSystemTime(&t1); GetSystemTime(&t2); Is this a good approach t1==t2 Thanks

        B Offline
        B Offline
        BlueSkycpp
        wrote on last edited by
        #3

        SYSTEMTIME t1; SYSTEMTIME t2; GetSystemTime(&t1); GetSystemTime(&t2); CTime tme1(&t1); CTime tme2(&t2); tme1 == tme2 ? TRUE : FALSE;

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups