Solved

Beginner: again conversion problem...

Posted on 2000-05-14
1
162 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
[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
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
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 additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

726 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