[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Beginner: again conversion problem...

Posted on 2000-05-14
1
Medium Priority
?
167 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 80 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
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 video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
Suggested Courses

649 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