Click here to Skip to main content
15,919,613 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem in Focusing... Pin
Ashish Chauhan26-Mar-08 23:42
Ashish Chauhan26-Mar-08 23:42 
GeneralRe: Problem in Focusing... Pin
Naveen27-Mar-08 1:04
Naveen27-Mar-08 1:04 
GeneralRe: Problem in Focusing... Pin
Rajkumar R26-Mar-08 21:50
Rajkumar R26-Mar-08 21:50 
QuestionRe: Problem in Focusing... Pin
David Crow27-Mar-08 3:18
David Crow27-Mar-08 3:18 
QuestionDate and time format conversion Pin
monsieur_jj26-Mar-08 20:26
monsieur_jj26-Mar-08 20:26 
GeneralRe: Date and time format conversion Pin
David Crow27-Mar-08 3:29
David Crow27-Mar-08 3:29 
GeneralRe: Date and time format conversion Pin
monsieur_jj27-Mar-08 15:09
monsieur_jj27-Mar-08 15:09 
GeneralRe: Date and time format conversion Pin
David Crow27-Mar-08 17:25
David Crow27-Mar-08 17:25 
The fact that you know OLE exists tells me that you are more than capable of figuring this out.

string strDate = "Fri Oct 13 01:32:38 CDT 2006";
string strDOW = strDate.substr(0, 3);
string strMonth = strDate.substr(4, 3); // need a way to convert Oct to 9
int nDay = atoi(strDate.substr(8, 2));
Once you have all seven pieces extracted, you can then populate one of the date-related structures (e.g., tm). You can use a function like mktime() to convert that structure into a fully defined structure with normalized values.

"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne


Questionhow not to draw outside a static control? Pin
code_discuss26-Mar-08 16:53
code_discuss26-Mar-08 16:53 
AnswerRe: how not to draw outside a static control? Pin
Stephen Hewitt26-Mar-08 17:25
Stephen Hewitt26-Mar-08 17:25 
AnswerRe: how not to draw outside a static control? Pin
Michael Dunn26-Mar-08 18:11
sitebuilderMichael Dunn26-Mar-08 18:11 
GeneralRe: how not to draw outside a static control? Pin
Stephen Hewitt26-Mar-08 18:28
Stephen Hewitt26-Mar-08 18:28 
GeneralRe: how not to draw outside a static control? Pin
code_discuss26-Mar-08 18:50
code_discuss26-Mar-08 18:50 
GeneralRe: how not to draw outside a static control? Pin
Michael Dunn26-Mar-08 19:18
sitebuilderMichael Dunn26-Mar-08 19:18 
Generalerrors about including imagehlp.h Pin
kcynic26-Mar-08 15:10
kcynic26-Mar-08 15:10 
GeneralRe: errors about including imagehlp.h Pin
rp_suman26-Mar-08 15:46
rp_suman26-Mar-08 15:46 
GeneralRe: errors about including imagehlp.h Pin
kcynic26-Mar-08 15:51
kcynic26-Mar-08 15:51 
GeneralRe: errors about including imagehlp.h Pin
Bram van Kampen26-Mar-08 16:01
Bram van Kampen26-Mar-08 16:01 
GeneralRe: errors about including imagehlp.h Pin
Bram van Kampen26-Mar-08 15:57
Bram van Kampen26-Mar-08 15:57 
GeneralRe: errors about including imagehlp.h Pin
kcynic26-Mar-08 16:18
kcynic26-Mar-08 16:18 
GeneralRe: errors about including imagehlp.h Pin
Bram van Kampen26-Mar-08 22:42
Bram van Kampen26-Mar-08 22:42 
GeneralRe: errors about including imagehlp.h Pin
kcynic26-Mar-08 23:00
kcynic26-Mar-08 23:00 
GeneralRe: errors about including imagehlp.h Pin
Bram van Kampen27-Mar-08 17:13
Bram van Kampen27-Mar-08 17:13 
GeneralRe: errors about including imagehlp.h Pin
kcynic27-Mar-08 17:18
kcynic27-Mar-08 17:18 
GeneralHRGN points Pin
rp_suman26-Mar-08 15:03
rp_suman26-Mar-08 15:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.