Click here to Skip to main content
15,898,936 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: Multithreading and classes. Pin
Thomas Freudenberg19-Jun-01 2:05
Thomas Freudenberg19-Jun-01 2:05 
GeneralOLE Drag Drop in an ActiveX control Pin
18-Jun-01 11:48
suss18-Jun-01 11:48 
GeneralGetting It Out Of The Recycling Bin Pin
Swinefeaster18-Jun-01 11:33
Swinefeaster18-Jun-01 11:33 
GeneralRe: Getting It Out Of The Recycling Bin Pin
Carlos Antollini18-Jun-01 11:55
Carlos Antollini18-Jun-01 11:55 
GeneralRe: Getting It Out Of The Recycling Bin Pin
Swinefeaster18-Jun-01 22:35
Swinefeaster18-Jun-01 22:35 
GeneralC++ - Inheritance Pin
Ganesh Ramaswamy18-Jun-01 11:08
Ganesh Ramaswamy18-Jun-01 11:08 
GeneralRe: C++ - Inheritance Pin
18-Jun-01 11:38
suss18-Jun-01 11:38 
Questionfixing "Cannot find the definition (implementation) of this function"? Pin
18-Jun-01 10:59
suss18-Jun-01 10:59 
AnswerRe: fixing Pin
18-Jun-01 21:50
suss18-Jun-01 21:50 
QuestionLoad *.c at runtime? Pin
18-Jun-01 10:51
suss18-Jun-01 10:51 
AnswerRe: Load *.c at runtime? Pin
Christian Graus18-Jun-01 17:10
protectorChristian Graus18-Jun-01 17:10 
AnswerRe: Load *.c at runtime? Pin
18-Jun-01 18:07
suss18-Jun-01 18:07 
GeneralRe: Load *.c at runtime? Pin
19-Jun-01 3:26
suss19-Jun-01 3:26 
QuestionIs there a CD-ROM? Pin
Rickard Andersson2018-Jun-01 10:43
Rickard Andersson2018-Jun-01 10: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.