Click here to Skip to main content
15,890,717 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionSending windows message from worker thread Pin
GC1044-Mar-11 0:41
GC1044-Mar-11 0:41 
AnswerRe: Sending windows message from worker thread Pin
CPallini4-Mar-11 1:47
mveCPallini4-Mar-11 1:47 
GeneralRe: Sending windows message from worker thread Pin
GC1044-Mar-11 2:29
GC1044-Mar-11 2:29 
GeneralRe: Sending windows message from worker thread Pin
prasad_som4-Mar-11 2:33
prasad_som4-Mar-11 2:33 
GeneralRe: Sending windows message from worker thread Pin
CPallini4-Mar-11 3:05
mveCPallini4-Mar-11 3:05 
GeneralRe: Sending windows message from worker thread Pin
CPallini4-Mar-11 2:36
mveCPallini4-Mar-11 2:36 
AnswerRe: Sending windows message from worker thread Pin
prasad_som4-Mar-11 2:30
prasad_som4-Mar-11 2:30 
QuestionGetting Time Difference [modified] Pin
AmbiguousName3-Mar-11 22:29
AmbiguousName3-Mar-11 22:29 
hello guys...I made this small console app inwhich I can get the difference (duration) between two times. I then store them into database as string. But the problem is that sometimes it shows some weird difference which I am unable to trace. Here is what I have
    SYSTEMTIME t,t2,t3;

    GetSystemTime(&t);  //gets current time on button click
    GetSystemTime(&t2);  //gets current time on second button click after some time

    //Get the difference between two times
    t3.wHour = t2.wHour - t.wHour;
    t3.wMinute = t2.wMinute - t.wMinute;
t3.wSecond = t2.wSecond - t.wSecond;

    //function to store time in SqlServer Database, inwhich I do some concatination and store time in DB
    //omitting those to keep things simple
GetMyDateTime2(t,t2,t3);


But here is one of the durations that I got from this calculation
2	3/3/2011 21:57:57	3/3/2011 21:58:3	0:1:65482(duration)	D:\Recordings\SecondRec.wav

what can be the problem?? thnx

modified on Friday, March 4, 2011 5:08 AM

AnswerRe: Getting Time Difference Pin
CPallini3-Mar-11 22:46
mveCPallini3-Mar-11 22:46 
AnswerRe: Getting Time Difference Pin
Cool_Dev3-Mar-11 23:40
Cool_Dev3-Mar-11 23:40 
AnswerRe: Getting Time Difference Pin
David Crow4-Mar-11 2:07
David Crow4-Mar-11 2:07 
AnswerRe: Getting Time Difference Pin
Andrew Brock4-Mar-11 20:06
Andrew Brock4-Mar-11 20:06 
Questionon button stop control transfers to a option button click code Pin
VCProgrammer3-Mar-11 20:14
VCProgrammer3-Mar-11 20:14 
QuestionRe: on button stop control transfers to a option button click code Pin
David Crow4-Mar-11 2:08
David Crow4-Mar-11 2:08 
AnswerRe: on button stop control transfers to a option button click code Pin
VCProgrammer4-Mar-11 18:09
VCProgrammer4-Mar-11 18:09 
AnswerRe: on button stop control transfers to a option button click code Pin
prasad_som4-Mar-11 2:36
prasad_som4-Mar-11 2:36 
QuestionSOLVED Application failed to initialize ?? [modified] Pin
Vaclav_3-Mar-11 13:48
Vaclav_3-Mar-11 13:48 
QuestionAdding a static library build Pin
softwaremonkey3-Mar-11 11:39
softwaremonkey3-Mar-11 11:39 
AnswerRe: Adding a static library build Pin
Andrew Brock3-Mar-11 16:06
Andrew Brock3-Mar-11 16:06 
GeneralRe: Adding a static library build Pin
softwaremonkey3-Mar-11 19:44
softwaremonkey3-Mar-11 19:44 
QuestionRecursive CFileFind problem [modified] Pin
Mr_Gbg3-Mar-11 6:43
Mr_Gbg3-Mar-11 6:43 
AnswerRe: Recursive CFileFind problem Pin
Frank Seidler3-Mar-11 7:30
Frank Seidler3-Mar-11 7:30 
QuestionRe: Recursive CFileFind problem Pin
David Crow3-Mar-11 8:07
David Crow3-Mar-11 8:07 
AnswerRe: Recursive CFileFind problem Pin
Luc Pattyn3-Mar-11 8:47
sitebuilderLuc Pattyn3-Mar-11 8:47 
GeneralRe: Recursive CFileFind problem Pin
David Crow3-Mar-11 9:08
David Crow3-Mar-11 9:08 

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.