Solved

Can you use DateTimePicker in unmanaged c++

Posted on 2007-03-26
3
306 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
Comment Utility
<unmanaged C++, VS.NET 2003?>   Do you want MFC ?
0
 

Author Comment

by:alexatsearidge
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Flash (http://en.wikipedia.org/wiki/Adobe_Flash) has evolved over the years to where it has become a masterful tool for displaying content screen.  It has excellent layout placement, UI precision as well as rendering capabilities. This, along with t…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This video discusses moving either the default database or any database to a new volume.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

763 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now