Click here to Skip to main content
15,920,053 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Displaying error message Pin
Blake Miller25-Oct-04 9:00
Blake Miller25-Oct-04 9:00 
GeneralRe: AfxMessageBox Pin
Budric B.25-Oct-04 9:01
Budric B.25-Oct-04 9:01 
GeneralLeft Button Drag-and-Drop Pin
Erick 'El Matador' Demers25-Oct-04 7:18
Erick 'El Matador' Demers25-Oct-04 7:18 
Generaltime critical Pin
LeeeNN25-Oct-04 6:55
LeeeNN25-Oct-04 6:55 
GeneralRe: time critical Pin
David Crow25-Oct-04 7:12
David Crow25-Oct-04 7:12 
GeneralRe: time critical Pin
Nemanja Trifunovic25-Oct-04 7:24
Nemanja Trifunovic25-Oct-04 7:24 
GeneralRe: time critical Pin
LeeeNN25-Oct-04 10:42
LeeeNN25-Oct-04 10:42 
GeneralRe: time critical Pin
dharani26-Oct-04 21:42
dharani26-Oct-04 21:42 
You can use the following method...
Create a thread that will do your work every 100 ms..
ULONG __stdcall LogRotater(LPVOID pParam)// declare a thread function

And define it as below
ULONG __stdcall LogRotater(LPVOID pParam)
{
BOOL bStop=FALSE;
WriteMessage(msg,1);
while (bStop == FALSE)
{
HANDLE m_hEvent;
m_hEvent=CreateEvent(NULL,FALSE,FALSE,NULL);
switch (WaitForSingleObject(m_hEvent, DWORD(100)))
{
case WAIT_OBJECT_0:
bStop = TRUE;
break;

case WAIT_TIMEOUT:
//Do your work here ...

break;
}
}
return 0;
}

in case: WAIT_TIMEOUT you can do whatever you want to ...



Dharani Babu S
QuestionFind next file? Pin
Larsson25-Oct-04 6:52
Larsson25-Oct-04 6:52 
AnswerRe: Find next file? Pin
David Crow25-Oct-04 7:19
David Crow25-Oct-04 7:19 
GeneralRe: Find next file? Pin
Larsson25-Oct-04 10:45
Larsson25-Oct-04 10:45 
GeneralRe: Find next file? Pin
David Crow25-Oct-04 10:50
David Crow25-Oct-04 10:50 
GeneralRe: Find next file? Pin
Larsson25-Oct-04 10:57
Larsson25-Oct-04 10:57 
GeneralRe: Find next file? Pin
David Crow26-Oct-04 2:54
David Crow26-Oct-04 2:54 
GeneralCMenu & MenuShowDelay Pin
GregH25-Oct-04 6:42
GregH25-Oct-04 6:42 
GeneralHelp to create an application which will be executed in background Pin
lillah25-Oct-04 6:39
lillah25-Oct-04 6:39 
GeneralRe: Help to create an application which will be executed in background Pin
David Crow25-Oct-04 7:28
David Crow25-Oct-04 7:28 
GeneralRe: Help to create an application which will be executed in background Pin
dharani26-Oct-04 21:47
dharani26-Oct-04 21:47 
GeneralRe: Help to create an application which will be executed in background Pin
lillah26-Oct-04 22:20
lillah26-Oct-04 22:20 
GeneralRe: Help to create an application which will be executed in background Pin
David Crow27-Oct-04 3:21
David Crow27-Oct-04 3:21 
Generalremove IE features in CDHtmlDialog Pin
pluto6625-Oct-04 5:58
pluto6625-Oct-04 5:58 
QuestionSplitters in MDI without WTL??? Pin
Vircowskiy Yacow25-Oct-04 5:45
Vircowskiy Yacow25-Oct-04 5:45 
AnswerRe: Splitters in MDI without WTL??? Pin
KaЯl26-Oct-04 3:38
KaЯl26-Oct-04 3:38 
GeneralOnFileNew Pin
0v3rloader25-Oct-04 5:30
0v3rloader25-Oct-04 5:30 
GeneralRe: OnFileNew Pin
BlackDice25-Oct-04 5:55
BlackDice25-Oct-04 5:55 

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.