Solved

Can you use DateTimePicker in unmanaged c++

Posted on 2007-03-26
3
314 Views
Last Modified: 2013-11-26
Is it possible to use the DateTimePicker control in unmanaged C++, VS.NET 2003?

If so could someone provide an example using the control only for time.
0
Comment
Question by:alexatsearidge
  • 2
3 Comments
 
LVL 44

Expert Comment

by:AndyAinscow
ID: 18793670
<unmanaged C++, VS.NET 2003?>   Do you want MFC ?
0
 

Author Comment

by:alexatsearidge
ID: 18793953
Please.  I just found the Microsoft Date Time Picker activex control; I have it on my form.  Now I need to get its value as a COleDateTime and as a CString
0
 
LVL 44

Accepted Solution

by:
AndyAinscow earned 500 total points
ID: 18794559
Don't forget there is an area specific for MFC questions - it can be confusing if you ask about forms in the .net area and you really want a dialog in MFC.

Use the class wizard and map a COleDateTime variable to the datetime picker.
COleDateTime has a format function - there you can specify what you would like the string to be.

eg.
12:37
or
Hello, the time is now 12 hours and 37 minutes
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question