473,396 Members | 2,076 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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

How do I get system time in VC++ in the .net development environment?
Nov 17 '05 #1
2 5336

"Kueishiong Tu" <Kueishiong Tu@discussions.microsoft.com> wrote in message
news:ED**********************************@microsof t.com...
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...

--
Peter [MVP Visual Developer]
Jack of all trades, master of none.
Nov 17 '05 #2
"Peter van der Goes" <p_**********@toadstool.u> wrote in message news:<ef**************@tk2msftngp13.phx.gbl>...
"Kueishiong Tu" <Kueishiong Tu@discussions.microsoft.com> wrote in message
news:ED**********************************@microsof t.com...
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...


in VC++ .net, you can do it this way too.
Console::WriteLine(System::DateTime::get_UtcNow(). ToString());
Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: | last post by:
I still have big problems running an assembly consisting of C# generated dll and exe and VC++ (managed+unmanaged+mfc) generated dll. On my development machine no problem, but on any other machine....
4
by: | last post by:
Some time ago I installed VC# 2003, made a small generic project, compile with the allow unsafe flag and I get the error below: "error CS1577: Assembly generation failed -- Unexpected exception...
0
by: Kueishiong Tu | last post by:
How do I get system time from VC++ in the .net development environment?
3
by: N4M | last post by:
Dear, I am going to build a DSS for hospital scheduling. I have some knowledge of standard C++, but I am novice to Windows programming and GUI development. Please tell me: 1- Should I separate...
3
by: _mario lat | last post by:
I try to fing on google but I have not find someting. How can I get the CPU time ? How can I know the true time my code spend? Thank you in advance, Mario.
3
by: Miguel | last post by:
I have a simple c++ program I just wrote with VC 6.0. I want to run this program on another machine, but it just locks up. What do I need to do to run the .exe file that is created in the debug...
14
by: =?Utf-8?B?Sm9hY2hpbQ==?= | last post by:
I have seen the following function to convert from a System::String^ to a const wchar_t*. I would like to get a LPCTSTR and AFAIK LPCTSTR is equal to const wchar_t*. Then it should all work right?...
53
by: Edward Diener | last post by:
Why bother having Stan Lippman and Herb Sutter created a C++/CLI language for .Net development when Microsoft, and the VC++ development team, are so clearly intent on limiting .Net development with...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.