Click here to Skip to main content
15,886,919 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: HINSTANCE for DLL Pin
Nibu babu thomas17-Jul-06 1:55
Nibu babu thomas17-Jul-06 1:55 
QuestionRe: HINSTANCE for DLL Pin
David Crow17-Jul-06 2:42
David Crow17-Jul-06 2:42 
QuestionRe: HINSTANCE for DLL Pin
Manjunath S17-Jul-06 3:35
Manjunath S17-Jul-06 3:35 
QuestionAfter AfxBeginthread... Pin
Smith#17-Jul-06 1:18
Smith#17-Jul-06 1:18 
AnswerRe: After AfxBeginthread... Pin
see me17-Jul-06 1:54
see me17-Jul-06 1:54 
AnswerRe: After AfxBeginthread... Pin
ThatsAlok17-Jul-06 2:17
ThatsAlok17-Jul-06 2:17 
AnswerRe: After AfxBeginthread... Pin
tanvon malik17-Jul-06 2:49
tanvon malik17-Jul-06 2:49 
QuestionHow get a list of LogSources ? Pin
fx920017-Jul-06 0:22
fx920017-Jul-06 0:22 
HELLO,
Now i can read and write all events in any log source (Application,System...)
i can catch each event logging in a specified log source.
the problem is that i want to cach any event in any log source.

this is the proc of catch:

BOOL notifyChange(LPCTSTR logSource)
{
BOOL bSuccess;
HANDLE hEventLog, hEvent;
DWORD dwWaitResult;

hEventLog = OpenEventLog(NULL, // local machine
logSource); // event log source name
if (hEventLog == NULL)
{
printf("Could not open event log.");
return FALSE;
}

hEvent = CreateEvent(NULL, // default security attributes
FALSE, // no manual reset
FALSE, // create as not signaled
NULL); // no event name

NotifyChangeEventLog(hEventLog, hEvent);

dwWaitResult = WaitForSingleObject(hEvent, INFINITE);
if (dwWaitResult == WAIT_FAILED)
bSuccess = FALSE;
else bSuccess = TRUE;

CloseHandle(hEvent);
CloseEventLog(hEventLog);
return bSuccess;
}
Questionis this the correct/best way to set file size? [modified] Pin
George_George17-Jul-06 0:09
George_George17-Jul-06 0:09 
AnswerRe: is this the correct/best way to set file size? Pin
David Crow17-Jul-06 2:44
David Crow17-Jul-06 2:44 
GeneralRe: is this the correct/best way to set file size? Pin
George_George17-Jul-06 3:05
George_George17-Jul-06 3:05 
GeneralRe: is this the correct/best way to set file size? Pin
David Crow17-Jul-06 3:49
David Crow17-Jul-06 3:49 
GeneralRe: is this the correct/best way to set file size? Pin
George_George17-Jul-06 4:08
George_George17-Jul-06 4:08 
QuestionRe: is this the correct/best way to set file size? Pin
David Crow17-Jul-06 4:14
David Crow17-Jul-06 4:14 
AnswerRe: is this the correct/best way to set file size? Pin
George_George17-Jul-06 20:49
George_George17-Jul-06 20:49 
GeneralRe: is this the correct/best way to set file size? Pin
David Crow18-Jul-06 2:34
David Crow18-Jul-06 2:34 
GeneralRe: is this the correct/best way to set file size? Pin
George_George18-Jul-06 22:26
George_George18-Jul-06 22:26 
AnswerRe: is this the correct/best way to set file size? Pin
earl17-Jul-06 4:57
earl17-Jul-06 4:57 
GeneralRe: is this the correct/best way to set file size? Pin
George_George17-Jul-06 20:51
George_George17-Jul-06 20:51 
GeneralRe: is this the correct/best way to set file size? Pin
earl18-Jul-06 6:40
earl18-Jul-06 6:40 
GeneralRe: is this the correct/best way to set file size? [modified] Pin
George_George18-Jul-06 22:28
George_George18-Jul-06 22:28 
GeneralRe: is this the correct/best way to set file size? Pin
earl19-Jul-06 3:14
earl19-Jul-06 3:14 
GeneralRe: is this the correct/best way to set file size? Pin
George_George19-Jul-06 20:34
George_George19-Jul-06 20:34 
QuestionEdit box Pin
SandhyaSri17-Jul-06 0:08
SandhyaSri17-Jul-06 0:08 
AnswerRe: Edit box Pin
Parthi_Appu17-Jul-06 0:23
Parthi_Appu17-Jul-06 0:23 

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.