Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Can you use DateTimePicker in unmanaged c++

Posted on 2007-03-26
3
313 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

Question has a verified solution.

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

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…

860 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