Click here to Skip to main content
15,911,646 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalado Pin
19-Jun-01 1:09
suss19-Jun-01 1:09 
GeneralRe: ado Pin
19-Jun-01 3:39
suss19-Jun-01 3:39 
GeneralRe: ado Pin
19-Jun-01 6:30
suss19-Jun-01 6:30 
GeneralRe: ado Pin
Carlos Antollini19-Jun-01 6:38
Carlos Antollini19-Jun-01 6:38 
QuestionCTreeCtrl + Sorting? Pin
E. den Ridder19-Jun-01 0:43
E. den Ridder19-Jun-01 0:43 
AnswerRe: CTreeCtrl + Sorting? Pin
Tomasz Sowinski19-Jun-01 0:55
Tomasz Sowinski19-Jun-01 0:55 
GeneralVC++ and Excel Pin
Gérald Mercet18-Jun-01 23:37
Gérald Mercet18-Jun-01 23:37 
GeneralOveriding OnOK Pin
William Bartholomew18-Jun-01 21:14
William Bartholomew18-Jun-01 21:14 
GeneralRe: Overiding OnOK Pin
18-Jun-01 21:42
suss18-Jun-01 21:42 
GeneralRe: Overiding OnOK Pin
Igor Sukhov18-Jun-01 21:43
Igor Sukhov18-Jun-01 21:43 
GeneralRe: Overiding OnOK Pin
Erik Funkenbusch19-Jun-01 7:50
Erik Funkenbusch19-Jun-01 7:50 
GeneralCommandbar custom ctrl Pin
Jerkan18-Jun-01 20:07
Jerkan18-Jun-01 20:07 
GeneralPOSITION in VC++ Pin
bo18-Jun-01 16:40
bo18-Jun-01 16:40 
GeneralRe: POSITION in VC++ Pin
Christian Graus18-Jun-01 17:07
protectorChristian Graus18-Jun-01 17:07 
GeneralRe: POSITION in VC++ Pin
18-Jun-01 18:12
suss18-Jun-01 18:12 
Generalword blocking Pin
prog758418-Jun-01 16:23
prog758418-Jun-01 16:23 
GeneralRe: word blocking Pin
Christian Graus18-Jun-01 17:05
protectorChristian Graus18-Jun-01 17:05 
Questionhow can I change ip address with vc? Pin
18-Jun-01 15:56
suss18-Jun-01 15:56 
AnswerRe: how can I change ip address with vc? Pin
19-Jun-01 6:33
suss19-Jun-01 6:33 
GeneralCTime::GetSecond() Pin
John Uhlenbrock18-Jun-01 14:09
John Uhlenbrock18-Jun-01 14:09 
GeneralRe: CTime::GetSecond() Pin
18-Jun-01 21:45
suss18-Jun-01 21:45 
GeneralRe: CTime::GetSecond() Pin
Paul D'hertoghe18-Jun-01 23:26
professionalPaul D'hertoghe18-Jun-01 23:26 
The problem come from the fact that you're using GetCurrentTime() in the wrong way; it is a static function that returns a CTime object filled with the current time.
Therefore, the following code should work:

CTime somecoolvariablename, anothercoolvariablename;
somecoolvariablename = CTime::GetCurrentTime();

// do some work

anothercoolvariablename = CTime::GetCurrentTime();

if(anothercoolvariablename.GetSecond() - somecoolvariablename.GetSecond() > 10) // CRASH HERE!
MessageBox(yadda yadda yadda);

GeneralMultithreading and classes. Pin
John Uhlenbrock18-Jun-01 12:30
John Uhlenbrock18-Jun-01 12:30 
GeneralRe: Multithreading and classes. Pin
Tim Deveaux18-Jun-01 13:54
Tim Deveaux18-Jun-01 13:54 
GeneralRe: Multithreading and classes. Pin
John Uhlenbrock18-Jun-01 14:04
John Uhlenbrock18-Jun-01 14:04 

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.