Solved

Beginner: again conversion problem...

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

911 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

26 Experts available now in Live!

Get 1:1 Help Now