time and date matters: VC 7(VC++.NET)
-
Hi all, I must say how useful I find the help offered here. Although sometimes it takes a while to get a response, the wait nullified by some mouthwatering suggestions. Anyway let me get down to my question. I want to display the time and date (from my system clock or local clock) in a text box inside a Dialog box. Any suggestions? Regards, luhfluh
-
Hi all, I must say how useful I find the help offered here. Although sometimes it takes a while to get a response, the wait nullified by some mouthwatering suggestions. Anyway let me get down to my question. I want to display the time and date (from my system clock or local clock) in a text box inside a Dialog box. Any suggestions? Regards, luhfluh
Check out
GetLocalTime()
andGetTimeFormat()
--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | NEW!! PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
-
Hi all, I must say how useful I find the help offered here. Although sometimes it takes a while to get a response, the wait nullified by some mouthwatering suggestions. Anyway let me get down to my question. I want to display the time and date (from my system clock or local clock) in a text box inside a Dialog box. Any suggestions? Regards, luhfluh
there are a bunch of static-based clock controls over here : http://www.codeproject.com/staticctrl/[^] Cleek | Image Toolkits | Thumbnail maker
-
Hi all, I must say how useful I find the help offered here. Although sometimes it takes a while to get a response, the wait nullified by some mouthwatering suggestions. Anyway let me get down to my question. I want to display the time and date (from my system clock or local clock) in a text box inside a Dialog box. Any suggestions? Regards, luhfluh
-
Using Michael Dunn's method you can ensure that the date is formatted as per the setting in the users locale. Steve
-
Hi all, I must say how useful I find the help offered here. Although sometimes it takes a while to get a response, the wait nullified by some mouthwatering suggestions. Anyway let me get down to my question. I want to display the time and date (from my system clock or local clock) in a text box inside a Dialog box. Any suggestions? Regards, luhfluh
-
Hi, when i first tried the above code on a new empty project, it worked without any problems.(after including the ATLComTime.h) But i finally modify and use it in my intended solution and i have 4 errors and 4 warnings: C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\ObjIdl.h(246) : warning C4935: assembly access specifier modified from 'public' C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\ObjIdl.h(258) : warning C4935: assembly access specifier modified from 'public' C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\ObjIdl.h(7408) : error C2872: 'IDataObject' : ambiguous symbol could be 'C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\ObjIdl.h(246) : System::Windows::Forms::IDataObject IDataObject' or 'stdafx.cpp(0) : System::Windows::Forms::IDataObject' C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\ObjIdl.h(7422) : fatal error C1903: unable to recover from previous error(s); stopping compilation Form1.cpp C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\ObjIdl.h(246) : warning C4935: assembly access specifier modified from 'public' C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\ObjIdl.h(258) : warning C4935: assembly access specifier modified from 'public' C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\ObjIdl.h(7408) : error C2872: 'IDataObject' : ambiguous symbol could be 'C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\ObjIdl.h(246) : System::Windows::Forms::IDataObject IDataObject' or 'stdafx.cpp(0) : System::Windows::Forms::IDataObject' C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\ObjIdl.h(7422) : fatal error C1903: unable to recover from previous error(s); stopping compilation Generating Code... Can you figure out what I might nid to do? Tks