Solved

Beginner: again conversion problem...

Posted on 2000-05-14
1
155 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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

762 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

9 Experts available now in Live!

Get 1:1 Help Now