Click here to Skip to main content
16,006,475 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Creating a Bitmap output without screen capture. Pin
David Crow22-Jan-07 9:39
David Crow22-Jan-07 9:39 
AnswerRe: Creating a Bitmap output without screen capture. Pin
CPallini22-Jan-07 9:42
mveCPallini22-Jan-07 9:42 
QuestionRe: Creating a Bitmap output without screen capture. Pin
Hamid_RT22-Jan-07 17:39
Hamid_RT22-Jan-07 17:39 
AnswerRe: Creating a Bitmap output without screen capture. Pin
u6ik25-Jan-07 3:09
u6ik25-Jan-07 3:09 
QuestionWaitForMultipleObjects() Pin
dellthinker22-Jan-07 9:14
dellthinker22-Jan-07 9:14 
QuestionRe: WaitForMultipleObjects() Pin
David Crow22-Jan-07 9:42
David Crow22-Jan-07 9:42 
AnswerRe: WaitForMultipleObjects() Pin
Mark Salsbery22-Jan-07 11:08
Mark Salsbery22-Jan-07 11:08 
Questiondifftime hell Pin
Deian22-Jan-07 9:12
Deian22-Jan-07 9:12 
Does anyone has an idea why the diff = difftime(my2, my1); fragment in the following code returns always zero?

char date1[60], date2[60];
struct tm mytime, mytime2;
time_t my1, my2;

mytime.tm_isdst = -1;
mytime.tm_year = 2006;
mytime.tm_mon = 1;
mytime.tm_mday = 1;
mytime.tm_hour = 0;
mytime.tm_min = 0;
mytime.tm_sec = 0;
             
my1 = mktime(&mytime);

strftime(date1 ,60 , "%x", &mytime2);
             
mytime2.tm_isdst = -1;
mytime2.tm_year = 2006;
mytime2.tm_mon = 1;
mytime2.tm_mday = 3;
mytime2.tm_hour = 0;
mytime2.tm_min = 0;
mytime2.tm_sec = 0;
               
my2 = mktime(&mytime2);          
             
strftime(date2 ,60 , "%x", &mytime2);
             
diff = difftime(my2, my1);
             
printf(date1);
printf(date2);
             
printf("Difference in seconds: %f\n", diff);

Regards,
Deian
AnswerRe: difftime hell Pin
David Crow22-Jan-07 9:45
David Crow22-Jan-07 9:45 
GeneralRe: difftime hell Pin
Deian22-Jan-07 9:55
Deian22-Jan-07 9:55 
GeneralRe: difftime hell Pin
David Crow22-Jan-07 10:08
David Crow22-Jan-07 10:08 
GeneralRe: difftime hell Pin
Deian22-Jan-07 12:23
Deian22-Jan-07 12:23 
AnswerRe: difftime hell [modified] Pin
CPallini22-Jan-07 10:15
mveCPallini22-Jan-07 10:15 
GeneralRe: difftime hell Pin
David Crow23-Jan-07 2:59
David Crow23-Jan-07 2:59 
GeneralRe: difftime hell Pin
CPallini23-Jan-07 4:26
mveCPallini23-Jan-07 4:26 
QuestionHow to prevent a Dialog from being resized by choosen font size? Pin
madmax000122-Jan-07 8:56
madmax000122-Jan-07 8:56 
AnswerRe: How to prevent a Dialog from being resized by choosen font size? Pin
ThatsAlok22-Jan-07 18:54
ThatsAlok22-Jan-07 18:54 
QuestionWhat's function use for close process? Pin
Max++22-Jan-07 6:42
Max++22-Jan-07 6:42 
AnswerRe: What's function use for close process? Pin
Mark Salsbery22-Jan-07 7:13
Mark Salsbery22-Jan-07 7:13 
GeneralRe: What's function use for close process? Pin
Stephen Hewitt22-Jan-07 14:00
Stephen Hewitt22-Jan-07 14:00 
GeneralRe: What's function use for close process? Pin
Mark Salsbery22-Jan-07 14:06
Mark Salsbery22-Jan-07 14:06 
AnswerRe: What's function use for close process? Pin
CPallini22-Jan-07 7:49
mveCPallini22-Jan-07 7:49 
GeneralRe: What's function use for close process? Pin
toxcct22-Jan-07 8:15
toxcct22-Jan-07 8:15 
GeneralRe: What's function use for close process? Pin
CPallini22-Jan-07 8:22
mveCPallini22-Jan-07 8:22 
GeneralRe: What's function use for close process? Pin
toxcct22-Jan-07 8:26
toxcct22-Jan-07 8:26 

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.