Solved

Can you use DateTimePicker in unmanaged c++

Posted on 2007-03-26
3
315 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
[X]
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
  • 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

Why You Need a DevOps Toolchain

IT needs to deliver services with more agility and velocity. IT must roll out application features and innovations faster to keep up with customer demands, which is where a DevOps toolchain steps in. View the infographic to see why you need a DevOps toolchain.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Visual Studio npm 1 38
SSIS Column mapping 5 37
How does GeoJson relates to Leaflet and Mapbox? 4 42
Error in Visual Project 10 41
Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

731 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