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. Managed C++/CLI
  4. System::Timers::Timer

System::Timers::Timer

Scheduled Pinned Locked Moved Managed C++/CLI
csharpc++helptutorialquestion
8 Posts 4 Posters 20 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
    silversmith
    wrote on last edited by
    #1

    Has anyone been able to use a System::Timers::Timer object in their Managed C++ code? I can't get it to be recognized by the compiler, yet the help documentation indicates it is a .NET class and there is C++ support for the types. Can anyone point me to a header file to include or some example code somewhere. Thanks Jim

    N R 3 Replies Last reply
    0
    • S silversmith

      Has anyone been able to use a System::Timers::Timer object in their Managed C++ code? I can't get it to be recognized by the compiler, yet the help documentation indicates it is a .NET class and there is C++ support for the types. Can anyone point me to a header file to include or some example code somewhere. Thanks Jim

      N Offline
      N Offline
      Nish Nishant
      wrote on last edited by
      #2

      What error are you getting? Nish


      Author of the romantic comedy Summer Love and Some more Cricket [New Win]

      S 1 Reply Last reply
      0
      • S silversmith

        Has anyone been able to use a System::Timers::Timer object in their Managed C++ code? I can't get it to be recognized by the compiler, yet the help documentation indicates it is a .NET class and there is C++ support for the types. Can anyone point me to a header file to include or some example code somewhere. Thanks Jim

        R Offline
        R Offline
        Rama Krishna Vavilala
        wrote on last edited by
        #3

        You need #using I have never wasted time worrying about such insignificant things. Keep your eye upon the donut and NOT upon the hole. - Bill Sergio about posting in the right forum. The Lounge - June 23, 2002

        S 1 Reply Last reply
        0
        • S silversmith

          Has anyone been able to use a System::Timers::Timer object in their Managed C++ code? I can't get it to be recognized by the compiler, yet the help documentation indicates it is a .NET class and there is C++ support for the types. Can anyone point me to a header file to include or some example code somewhere. Thanks Jim

          N Offline
          N Offline
          Nish Nishant
          wrote on last edited by
          #4

          If Rama's understanding of your problem is correct you have a compiler error. If so, put this on top as he has suggested :- #using <system.dll> Nish


          Author of the romantic comedy Summer Love and Some more Cricket [New Win]

          1 Reply Last reply
          0
          • R Rama Krishna Vavilala

            You need #using I have never wasted time worrying about such insignificant things. Keep your eye upon the donut and NOT upon the hole. - Bill Sergio about posting in the right forum. The Lounge - June 23, 2002

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

            No that is not it. I tried that first. If you put in a #using System::Timers ; statement you get an "error C006 '#using' : expected a filename, found 'identifier' Thanks though.

            L N 2 Replies Last reply
            0
            • N Nish Nishant

              What error are you getting? Nish


              Author of the romantic comedy Summer Love and Some more Cricket [New Win]

              S Offline
              S Offline
              silversmith
              wrote on last edited by
              #6

              For the following class header member declaration System::Timers::Timer* timer ; Yeilds the following error "error C2039: 'Timers' is not a member of 'System'"

              1 Reply Last reply
              0
              • S silversmith

                No that is not it. I tried that first. If you put in a #using System::Timers ; statement you get an "error C006 '#using' : expected a filename, found 'identifier' Thanks though.

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #7

                silversmith wrote: #using System::Timers ; You cannot do that. System::Timers is a namespace name. You need to use using namespace System::Timers;

                1 Reply Last reply
                0
                • S silversmith

                  No that is not it. I tried that first. If you put in a #using System::Timers ; statement you get an "error C006 '#using' : expected a filename, found 'identifier' Thanks though.

                  N Offline
                  N Offline
                  Nish Nishant
                  wrote on last edited by
                  #8

                  silversmith wrote: #using System::Timers ; That's wrong usage. Try this :- #using <system.dll> Nish


                  Author of the romantic comedy Summer Love and Some more Cricket [New Win]

                  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