Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / June 2004

Tip: Looking for answers? Try searching our database.

How do I get system time in VC++ in the .net development environme

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kueishiong Tu - 22 Jun 2004 12:57 GMT
How do I get system time in VC++ in the .net development environment?
Peter van der Goes - 22 Jun 2004 15:12 GMT
> How do I get system time in VC++ in the .net development environment?

What kind of project?
If you're doing a Windows application, you can use GetSystemTime() and
SetSystemTime() with a SYSTEMTIME structure. For more on these, plug the
phrase "system time" into the help, filtered by Visual C++.
More generally, VC++ 7.1 still supports time.h and ctime.h (time constants),
which can be used to get the system  time.
I'm sure others will offer additional suggestions...

Signature

Peter [MVP Visual Developer]
Jack of all trades, master of none.

Vinayak Raghuvamshi - 22 Jun 2004 22:35 GMT
> > How do I get system time in VC++ in the .net development environment?
>
[quoted text clipped - 5 lines]
> which can be used to get the system  time.
> I'm sure others will offer additional suggestions...

in VC++ .net, you can do it this way too.
Console::WriteLine(System::DateTime::get_UtcNow().ToString());

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.