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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Need HELP URGENTLY with COleDateTime!!!!!!

Need HELP URGENTLY with COleDateTime!!!!!!

Scheduled Pinned Locked Moved C / C++ / MFC
debugginghelpquestionworkspace
5 Posts 3 Posters 1 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.
  • S Offline
    S Offline
    sayvr79
    wrote on last edited by
    #1

    :eek:I am trying to use a COleDateTime object and use the method ParseDateTime() to convert a string to date/time format.But it returns an invalid status for the object every time the method is called.I have tried all formats of date,date/time as mentioned in MSDN, but none works. In Debug mode, I am also not able to step into the ParseDateTime function. COleDateTime objDate; strDate = _T("2004/01/01"); objDate.ParseDateTime(strDate, 0); I have included The same code works fine in another new workspace/project. But in my project/workspace, it isnt producing any result. Can anyone please let me know what might be wrong? :confused:

    A M 2 Replies Last reply
    0
    • S sayvr79

      :eek:I am trying to use a COleDateTime object and use the method ParseDateTime() to convert a string to date/time format.But it returns an invalid status for the object every time the method is called.I have tried all formats of date,date/time as mentioned in MSDN, but none works. In Debug mode, I am also not able to step into the ParseDateTime function. COleDateTime objDate; strDate = _T("2004/01/01"); objDate.ParseDateTime(strDate, 0); I have included The same code works fine in another new workspace/project. But in my project/workspace, it isnt producing any result. Can anyone please let me know what might be wrong? :confused:

      A Offline
      A Offline
      Antony M Kancidrowski
      wrote on last edited by
      #2

      It seems strange that you can't step into ParseDateTime! It is declared in \Microsoft Visual Studio\VC98\MFC\SRC\OLEVAR.CPP In my experience it would seem that the project could require a complete rebuild. Strange problems like that are normally cured with a complete clean and rebuild. Ant.

      S 1 Reply Last reply
      0
      • A Antony M Kancidrowski

        It seems strange that you can't step into ParseDateTime! It is declared in \Microsoft Visual Studio\VC98\MFC\SRC\OLEVAR.CPP In my experience it would seem that the project could require a complete rebuild. Strange problems like that are normally cured with a complete clean and rebuild. Ant.

        S Offline
        S Offline
        sayvr79
        wrote on last edited by
        #3

        I tried that too..it still doesnt work..:eek:

        1 Reply Last reply
        0
        • S sayvr79

          :eek:I am trying to use a COleDateTime object and use the method ParseDateTime() to convert a string to date/time format.But it returns an invalid status for the object every time the method is called.I have tried all formats of date,date/time as mentioned in MSDN, but none works. In Debug mode, I am also not able to step into the ParseDateTime function. COleDateTime objDate; strDate = _T("2004/01/01"); objDate.ParseDateTime(strDate, 0); I have included The same code works fine in another new workspace/project. But in my project/workspace, it isnt producing any result. Can anyone please let me know what might be wrong? :confused:

          M Offline
          M Offline
          Mukkie
          wrote on last edited by
          #4

          Hello! - check with dependency viewer what libraries are truly loaded (maybe you have two copies of some dll?) - MSDN says that only formats DD-MM-YYYY MM-DD-YYYY YYYY-MM-DD are properly handled - see VarDateFromStr - maybe instead of ParseDateTime you can use COleDateTime::Format() ? - check the difference in locale settings (control panel) for date/time format on machines where it works, and not. :)

          S 1 Reply Last reply
          0
          • M Mukkie

            Hello! - check with dependency viewer what libraries are truly loaded (maybe you have two copies of some dll?) - MSDN says that only formats DD-MM-YYYY MM-DD-YYYY YYYY-MM-DD are properly handled - see VarDateFromStr - maybe instead of ParseDateTime you can use COleDateTime::Format() ? - check the difference in locale settings (control panel) for date/time format on machines where it works, and not. :)

            S Offline
            S Offline
            sayvr79
            wrote on last edited by
            #5

            Thanx will try:)

            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