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. C / C++ / MFC
  4. COleDateTime error in VS.NET 2003 ?

COleDateTime error in VS.NET 2003 ?

Scheduled Pinned Locked Moved C / C++ / MFC
csharpvisual-studiohelpquestion
2 Posts 2 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.
  • I Offline
    I Offline
    irol
    wrote on last edited by
    #1

    Hi, Recently I wrote simple code like that: // COleDateTime dt(2006,02,30,1,1,1); if (dt.GetStatus() == COleDateTime::valid) { AfxMessageBox("valid"); } else { AfxMessageBox("NOT valid"); } /// It shows message box "valid" in VS.NET 2003 ! Am I crazy ? Or sth is wrong ? It shows message box "NOT valid" in VS 6.0. Best regards, Irek Olchawski.

    R 1 Reply Last reply
    0
    • I irol

      Hi, Recently I wrote simple code like that: // COleDateTime dt(2006,02,30,1,1,1); if (dt.GetStatus() == COleDateTime::valid) { AfxMessageBox("valid"); } else { AfxMessageBox("NOT valid"); } /// It shows message box "valid" in VS.NET 2003 ! Am I crazy ? Or sth is wrong ? It shows message box "NOT valid" in VS 6.0. Best regards, Irek Olchawski.

      R Offline
      R Offline
      RChin
      wrote on last edited by
      #2

      You might find this[^] useful. Thanks for the heads-up :). The apps that I write uses this class a lot and could, in theory, be severly affected by this.


      I Dream of Absolute Zero

      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