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. Data Var [modified]

Data Var [modified]

Scheduled Pinned Locked Moved C / C++ / MFC
c++question
12 Posts 6 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.
  • S Schehaider_Aymen

    Hello, is there a specified Data Date variable type that i can use it with C++? I don't like to use a structure including three integers for this aim. Thank you

    "The Ultimate Limit Is Only Your Imagination."

    modified on Friday, June 11, 2010 9:09 AM

    C Offline
    C Offline
    Chris Losinger
    wrote on last edited by
    #2

    what?

    image processing toolkits | batch image processing

    1 Reply Last reply
    0
    • S Schehaider_Aymen

      Hello, is there a specified Data Date variable type that i can use it with C++? I don't like to use a structure including three integers for this aim. Thank you

      "The Ultimate Limit Is Only Your Imagination."

      modified on Friday, June 11, 2010 9:09 AM

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

      I think yeah; the SYSTEMTIME Var ;P sorry to post the question too quick

      "The Ultimate Limit Is Only Your Imagination."

      1 Reply Last reply
      0
      • S Schehaider_Aymen

        Hello, is there a specified Data Date variable type that i can use it with C++? I don't like to use a structure including three integers for this aim. Thank you

        "The Ultimate Limit Is Only Your Imagination."

        modified on Friday, June 11, 2010 9:09 AM

        D Offline
        D Offline
        David Crow
        wrote on last edited by
        #4

        Blood_HaZaRd wrote:

        is there a specified Data variable type that i can use it with C++?

        Please refactor this question so that it makes sense. :confused:

        "One man's wage rise is another man's price increase." - Harold Wilson

        "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

        "Man who follows car will be exhausted." - Confucius

        S 1 Reply Last reply
        0
        • D David Crow

          Blood_HaZaRd wrote:

          is there a specified Data variable type that i can use it with C++?

          Please refactor this question so that it makes sense. :confused:

          "One man's wage rise is another man's price increase." - Harold Wilson

          "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

          "Man who follows car will be exhausted." - Confucius

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

          sorry i wrote Data instead of Date (i have a quarty Keyboard and Eng Os

          "The Ultimate Limit Is Only Your Imagination."

          1 Reply Last reply
          0
          • S Schehaider_Aymen

            Hello, is there a specified Data Date variable type that i can use it with C++? I don't like to use a structure including three integers for this aim. Thank you

            "The Ultimate Limit Is Only Your Imagination."

            modified on Friday, June 11, 2010 9:09 AM

            CPalliniC Offline
            CPalliniC Offline
            CPallini
            wrote on last edited by
            #6

            Do you mean a date? If you're using ATL/MFC then class CTime is avalable [^]. :)

            If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
            This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
            [My articles]

            In testa che avete, signor di Ceprano?

            S 1 Reply Last reply
            0
            • CPalliniC CPallini

              Do you mean a date? If you're using ATL/MFC then class CTime is avalable [^]. :)

              If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
              This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
              [My articles]

              S Offline
              S Offline
              Schehaider_Aymen
              wrote on last edited by
              #7

              great one but when i write this code it said that the CTime is not a class or a namespace. How to help #include<time.h> #include<iostream> using namespace std;

              void main()
              {
              //char date[9];
              // _strdate(date);
              // cout << date << endl;

              CTime t1(1999, 3, 19, 22, 15, 0); // 10:15 PM March 19, 1999
              CTime t2(1999, 3, 20, 22, 15, 0); // 10:15 PM March 20, 1999
              CTimeSpan ts = t2 - t1;             // Subtract 2 CTimes
              

              }

              "The Ultimate Limit Is Only Your Imagination."

              C N 2 Replies Last reply
              0
              • S Schehaider_Aymen

                great one but when i write this code it said that the CTime is not a class or a namespace. How to help #include<time.h> #include<iostream> using namespace std;

                void main()
                {
                //char date[9];
                // _strdate(date);
                // cout << date << endl;

                CTime t1(1999, 3, 19, 22, 15, 0); // 10:15 PM March 19, 1999
                CTime t2(1999, 3, 20, 22, 15, 0); // 10:15 PM March 20, 1999
                CTimeSpan ts = t2 - t1;             // Subtract 2 CTimes
                

                }

                "The Ultimate Limit Is Only Your Imagination."

                C Offline
                C Offline
                Cedric Moonen
                wrote on last edited by
                #8

                That's why Carlo said "if you are using MFC/ATL", which is not your case so forget about it.

                Cédric Moonen Software developer
                Charting control [v3.0] OpenGL game tutorial in C++

                S 1 Reply Last reply
                0
                • C Cedric Moonen

                  That's why Carlo said "if you are using MFC/ATL", which is not your case so forget about it.

                  Cédric Moonen Software developer
                  Charting control [v3.0] OpenGL game tutorial in C++

                  S Offline
                  S Offline
                  Schehaider_Aymen
                  wrote on last edited by
                  #9

                  Ah no indeed i'm using MFC so it still the case :laugh:

                  "The Ultimate Limit Is Only Your Imagination."

                  CPalliniC 1 Reply Last reply
                  0
                  • S Schehaider_Aymen

                    great one but when i write this code it said that the CTime is not a class or a namespace. How to help #include<time.h> #include<iostream> using namespace std;

                    void main()
                    {
                    //char date[9];
                    // _strdate(date);
                    // cout << date << endl;

                    CTime t1(1999, 3, 19, 22, 15, 0); // 10:15 PM March 19, 1999
                    CTime t2(1999, 3, 20, 22, 15, 0); // 10:15 PM March 20, 1999
                    CTimeSpan ts = t2 - t1;             // Subtract 2 CTimes
                    

                    }

                    "The Ultimate Limit Is Only Your Imagination."

                    N Offline
                    N Offline
                    Nuri Ismail
                    wrote on last edited by
                    #10

                    You need to include atltime.h header in order to use the CTime class. (In case you are using MFC/ATL). I see that you have already included time.h so you can use the struct tm[^] from this header. See here[^] for standard date/time functions, macros and types. :)

                    S 1 Reply Last reply
                    0
                    • N Nuri Ismail

                      You need to include atltime.h header in order to use the CTime class. (In case you are using MFC/ATL). I see that you have already included time.h so you can use the struct tm[^] from this header. See here[^] for standard date/time functions, macros and types. :)

                      S Offline
                      S Offline
                      Schehaider_Aymen
                      wrote on last edited by
                      #11

                      Yup Thank you. I even found another Class zhicgh is CTimeSpan (based on CTime and do operations on time which the most suitable class for now. Thnak you again and @ Cedric: the errors from VS saying that CTilme t1 is undeclarated was due to a line which end with no ; and now it works i forget to say that i was under MFC so excuse me again we are humains and we do mistakes. :|

                      "The Ultimate Limit Is Only Your Imagination."

                      1 Reply Last reply
                      0
                      • S Schehaider_Aymen

                        Ah no indeed i'm using MFC so it still the case :laugh:

                        "The Ultimate Limit Is Only Your Imagination."

                        CPalliniC Offline
                        CPalliniC Offline
                        CPallini
                        wrote on last edited by
                        #12

                        Blood_HaZaRd wrote:

                        Ah no indeed i'm using MF

                        For another project? The posted one looks the classical console application... :rolleyes:

                        If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                        This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
                        [My articles]

                        In testa che avete, signor di Ceprano?

                        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