Solved

Beginner: again conversion problem...

Posted on 2000-05-14
1
160 Views
Last Modified: 2012-03-15
CString queryTime;
      queryTime.Format("%s",dataTime);
app->WriteProfileString("profile", "lastquery",queryTime);

i have added a time (dataTime) in hour minute format to the registry.
My proble is now how to convert a String back to a valid usable Hour minute Time ??

Thanks in advance. HAvent got much points left so hope you will still reply for this minor amount of point ?
0
Comment
Question by:peter_b
1 Comment
 
LVL 22

Accepted Solution

by:
nietod earned 20 total points
ID: 2808590
You haven't given us much in the way of details, like the format of the time string or the data types you want to convert it to.  But one approach woudl be to use sscanf() to extract the values from the string.

Let me know if you have any questions, or more details.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

809 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