Click here to Skip to main content
15,921,606 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CMenu owner Drawing Pin
Ștefan-Mihai MOGA4-Apr-06 0:11
professionalȘtefan-Mihai MOGA4-Apr-06 0:11 
QuestionTimers Pin
chetan2101833-Apr-06 17:53
chetan2101833-Apr-06 17:53 
AnswerRe: Timers Pin
Nibu babu thomas3-Apr-06 18:25
Nibu babu thomas3-Apr-06 18:25 
GeneralRe: Timers Pin
chetan2101833-Apr-06 18:46
chetan2101833-Apr-06 18:46 
GeneralRe: Timers Pin
Nibu babu thomas3-Apr-06 18:52
Nibu babu thomas3-Apr-06 18:52 
GeneralRe: Timers Pin
chetan2101833-Apr-06 18:59
chetan2101833-Apr-06 18:59 
GeneralRe: Timers Pin
Nibu babu thomas3-Apr-06 19:02
Nibu babu thomas3-Apr-06 19:02 
AnswerRe: Timers Pin
Laxman Auti3-Apr-06 18:28
Laxman Auti3-Apr-06 18:28 
You wrote:
void CMyDlg::OnClickStart()
{
fp = fopen(file_name,"a");
if (NULL == fp)
{
MessageBox ("Error Writing File",NULL, MB_OK|MB_ICONSTOP);
KillTimer(m_nTimer);
}
m_nTimer = SetTimer(1, 100, NULL);
fprintf(fp,"%d\n",status);
}


for killing timer use
KillTimer(1);

i.e what ID you provided to set the timer

The Timer returns the timer id when hwnd parameter of the settimer is NULL

hope this is enough for you


Knock out "T" from CAN'T
You 'CAN' if you think you 'CAN'
Cool | :cool:
GeneralRe: Timers Pin
Nibu babu thomas3-Apr-06 18:33
Nibu babu thomas3-Apr-06 18:33 
AnswerRe: Timers Pin
Anilkumar K V3-Apr-06 20:09
Anilkumar K V3-Apr-06 20:09 
Questionread and write email in lotus notes Pin
rcao3-Apr-06 17:20
rcao3-Apr-06 17:20 
Questionusing process to look for hwnd Pin
zt97883-Apr-06 17:10
zt97883-Apr-06 17:10 
AnswerRe: using process to look for hwnd Pin
Stephen Hewitt3-Apr-06 17:46
Stephen Hewitt3-Apr-06 17:46 
GeneralRe: using process to look for hwnd Pin
zt97883-Apr-06 19:13
zt97883-Apr-06 19:13 
GeneralRe: using process to look for hwnd Pin
Stephen Hewitt3-Apr-06 19:16
Stephen Hewitt3-Apr-06 19:16 
GeneralRe: using process to look for hwnd Pin
zt97883-Apr-06 19:43
zt97883-Apr-06 19:43 
GeneralRe: using process to look for hwnd Pin
Stephen Hewitt3-Apr-06 19:53
Stephen Hewitt3-Apr-06 19:53 
Questioncode like this. Pin
sting_lee3-Apr-06 16:27
sting_lee3-Apr-06 16:27 
AnswerRe: code like this. Pin
Rick York3-Apr-06 17:44
mveRick York3-Apr-06 17:44 
GeneralRe: code like this. Pin
toxcct3-Apr-06 21:56
toxcct3-Apr-06 21:56 
QuestionHelp me,I happen to a error about the compliler in VC6.0 Pin
onlysaint3-Apr-06 16:24
onlysaint3-Apr-06 16:24 
AnswerRe: Help me,I happen to a error about the compliler in VC6.0 Pin
includeh103-Apr-06 20:48
includeh103-Apr-06 20:48 
QuestionHow to touch member variable from a exported dll class Pin
sting_lee3-Apr-06 16:23
sting_lee3-Apr-06 16:23 
QuestionDSOFramer in MFC Dialog Pin
Jenleonard3-Apr-06 14:13
Jenleonard3-Apr-06 14:13 
Question2D array help Pin
juztten3-Apr-06 14:07
juztten3-Apr-06 14:07 

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.