System::Timers::Timer
-
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
-
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
What error are you getting? Nish
Author of the romantic comedy Summer Love and Some more Cricket [New Win]
-
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
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
-
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
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]
-
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
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.
-
What error are you getting? Nish
Author of the romantic comedy Summer Love and Some more Cricket [New Win]
For the following class header member declaration System::Timers::Timer* timer ; Yeilds the following error "error C2039: 'Timers' is not a member of 'System'"
-
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.
-
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.
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]