Click here to Skip to main content
15,917,642 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Is it possible to change the environment of a process? Pin
div!sion20-Jun-08 1:10
div!sion20-Jun-08 1:10 
AnswerRe: Is it possible to change the environment of a process? Pin
Randor 20-Jun-08 4:08
professional Randor 20-Jun-08 4:08 
GeneralRe: Is it possible to change the environment of a process? Pin
div!sion20-Jun-08 4:42
div!sion20-Jun-08 4:42 
QuestionSort by MailDates Pin
manju#12320-Jun-08 0:13
manju#12320-Jun-08 0:13 
QuestionCompare two date Pin
manju#12319-Jun-08 23:24
manju#12319-Jun-08 23:24 
AnswerRe: Compare two date Pin
Rajesh R Subramanian19-Jun-08 23:37
professionalRajesh R Subramanian19-Jun-08 23:37 
AnswerRe: Compare two date Pin
Hamid_RT20-Jun-08 0:40
Hamid_RT20-Jun-08 0:40 
AnswerRe: Compare two date Pin
CPallini20-Jun-08 2:36
mveCPallini20-Jun-08 2:36 
if the format is always fixed (i.e. there must be two spaces between 20080430 and 8:36:05 in your sample string) then a lexicographic comparison is enough, that means strcmp will do the magic:
const char * date1 = "20080430  8:36:05"; 
const char * date2 = "20080423 13:49:19"; // note the alignment

int icmp = strcmp(date1,date2); 
if (  icmp > 0)
{
// here date1 is the latest one
}
else if ( icmp < 0 )
{
// here date1 is the earlest one
}
else
{
// I guess you can figure out what happens here
}


On the other hand. If the format is not fixed then you're a (actually not so much: it is fairly easy to repair it) unlucky girl.
Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke


[My articles]

QuestionHow can i change style of static text control caption in ATL? Pin
sumit.durg19-Jun-08 22:57
sumit.durg19-Jun-08 22:57 
AnswerREPOST! Please report the message. Pin
Rajesh R Subramanian19-Jun-08 23:00
professionalRajesh R Subramanian19-Jun-08 23:00 
GeneralRe: REPOST! Please report the message. Pin
sumit.durg19-Jun-08 23:57
sumit.durg19-Jun-08 23:57 
GeneralRe: REPOST! Please report the message. Pin
Rajesh R Subramanian20-Jun-08 0:06
professionalRajesh R Subramanian20-Jun-08 0:06 
AnswerRe: How can i change style of static text control caption in ATL? Pin
Hamid_RT20-Jun-08 0:44
Hamid_RT20-Jun-08 0:44 
QuestionVC++ Pin
sreedevi kolli19-Jun-08 22:56
sreedevi kolli19-Jun-08 22:56 
AnswerRe: VC++ [modified] Pin
Nibu babu thomas19-Jun-08 23:06
Nibu babu thomas19-Jun-08 23:06 
QuestionCopy directory Pin
kindaichinisan19-Jun-08 22:01
kindaichinisan19-Jun-08 22:01 
AnswerRe: Copy directory Pin
Hamid_RT19-Jun-08 22:06
Hamid_RT19-Jun-08 22:06 
Questiondll export Pin
shakumar_2219-Jun-08 21:11
shakumar_2219-Jun-08 21:11 
AnswerRe: dll export Pin
CPallini19-Jun-08 21:19
mveCPallini19-Jun-08 21:19 
QuestionLow-pass filter questions Pin
jeremie.delaitre19-Jun-08 20:36
jeremie.delaitre19-Jun-08 20:36 
GeneralRe: Low-pass filter questions Pin
CPallini19-Jun-08 21:09
mveCPallini19-Jun-08 21:09 
GeneralRe: Low-pass filter questions Pin
jeremie.delaitre19-Jun-08 21:55
jeremie.delaitre19-Jun-08 21:55 
AnswerRe: Low-pass filter questions Pin
Nelek19-Jun-08 22:55
protectorNelek19-Jun-08 22:55 
GeneralRe: Low-pass filter questions Pin
jeremie.delaitre19-Jun-08 23:34
jeremie.delaitre19-Jun-08 23:34 
GeneralRe: Low-pass filter questions Pin
Nelek19-Jun-08 23:43
protectorNelek19-Jun-08 23:43 

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.