• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 325
  • Last Modified:

Can you use DateTimePicker in unmanaged c++

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.
  • 2
1 Solution
AndyAinscowFreelance programmer / ConsultantCommented:
<unmanaged C++, VS.NET 2003?>   Do you want MFC ?
alexatsearidgeAuthor Commented:
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
AndyAinscowFreelance programmer / ConsultantCommented:
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.

Hello, the time is now 12 hours and 37 minutes
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now