Click here to Skip to main content
15,914,221 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CObject::operator new() Pin
PJ Arends9-May-05 7:09
professionalPJ Arends9-May-05 7:09 
Generalabout shutdown dialog box Pin
feitianli_38-May-05 21:25
feitianli_38-May-05 21:25 
GeneralRe: about shutdown dialog box Pin
P-Rex8-May-05 22:09
P-Rex8-May-05 22:09 
GeneralRe: about shutdown dialog box Pin
ThatsAlok8-May-05 22:20
ThatsAlok8-May-05 22:20 
GeneralRe: about shutdown dialog box Pin
feitianli_39-May-05 15:39
feitianli_39-May-05 15:39 
GeneralMemory leak.... vector of pointers.... Pin
franz19998-May-05 20:22
franz19998-May-05 20:22 
GeneralRe: Memory leak.... vector of pointers.... Pin
jmkhael8-May-05 23:37
jmkhael8-May-05 23:37 
Generaltell me a solution...if u can Pin
VCSharp0078-May-05 19:32
VCSharp0078-May-05 19:32 
Hi,
Plz have a look at the following code snippet.This code will be executing in an endless while loop waiting for an event to be logged in the application log.If any event is logged then it will post a message to the dialog class for displaying it.

NotifyChangeEventLog(hEventLog, hEvent);
DWORD dwWaitResult = WaitForSingleObject(hEvent, INFINITE);
if(dwWaitResult ==WAIT_FAILED)
{
AfxMessageBox("Waiting Failed");
return 0;
}

PostMessage(pDlg->m_hWnd,UM_EVENT_LOGGED,0,0); //(long)hEventLog );


Now the problem is it will not notify all the events logged.ie if it notifyes a event logged then it will notifyes only after 5 seconds.So all the events logged with in this 5 second time will be lossed.

Plz help me with a solution...

With Luv
GeneralRe: tell me a solution...if u can Pin
Christian Graus8-May-05 19:35
protectorChristian Graus8-May-05 19:35 
GeneralRe: tell me a solution...if u can Pin
VCSharp0078-May-05 20:21
VCSharp0078-May-05 20:21 
GeneralRe: tell me a solution...if u can Pin
David Crow9-May-05 5:04
David Crow9-May-05 5:04 
GeneralRe: tell me a solution...if u can Pin
VCSharp0079-May-05 17:31
VCSharp0079-May-05 17:31 
GeneralRe: tell me a solution...if u can Pin
David Crow10-May-05 2:06
David Crow10-May-05 2:06 
GeneralRe: tell me a solution...if u can Pin
VCSharp00710-May-05 23:58
VCSharp00710-May-05 23:58 
GeneralRe: tell me a solution...if u can Pin
David Crow11-May-05 2:24
David Crow11-May-05 2:24 
Generalcheck a string if it is a number Pin
Anonymous8-May-05 19:27
Anonymous8-May-05 19:27 
GeneralRe: check a string if it is a number Pin
Christian Graus8-May-05 19:34
protectorChristian Graus8-May-05 19:34 
GeneralRe: check a string if it is a number Pin
Ted Ferenc8-May-05 21:26
Ted Ferenc8-May-05 21:26 
GeneralRe: check a string if it is a number Pin
PJ Arends8-May-05 21:26
professionalPJ Arends8-May-05 21:26 
GeneralRe: check a string if it is a number Pin
namaskaaram8-May-05 23:30
namaskaaram8-May-05 23:30 
Generalhelp regarding inheritance Pin
Usman Arif8-May-05 18:38
Usman Arif8-May-05 18:38 
GeneralRe: help regarding inheritance Pin
Christian Graus8-May-05 18:42
protectorChristian Graus8-May-05 18:42 
GeneralRe: help regarding inheritance Pin
Usman Arif8-May-05 19:24
Usman Arif8-May-05 19:24 
GeneralRe: help regarding inheritance Pin
Christian Graus8-May-05 19:31
protectorChristian Graus8-May-05 19:31 
GeneralRe: help regarding inheritance Pin
ThatsAlok8-May-05 19:35
ThatsAlok8-May-05 19:35 

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.