Click here to Skip to main content
15,846,976 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Unhandled exception in CreateCompatibleBitmap() Pin
Adam Roderick J29-Oct-09 19:42
Adam Roderick J29-Oct-09 19:42 
AnswerRe: Unhandled exception in CreateCompatibleBitmap() Pin
tibbasultanpur29-Oct-09 19:56
tibbasultanpur29-Oct-09 19:56 
QuestionWhy no default constructor for property sheets? [modified] Pin
al250029-Oct-09 19:03
al250029-Oct-09 19:03 
Question_utime problem Pin
crazydoy29-Oct-09 17:00
crazydoy29-Oct-09 17:00 
AnswerRe: _utime problem Pin
«_Superman_»29-Oct-09 17:56
professional«_Superman_»29-Oct-09 17:56 
GeneralRe: _utime problem Pin
crazydoy29-Oct-09 19:47
crazydoy29-Oct-09 19:47 
QuestionRe: _utime problem Pin
David Crow30-Oct-09 4:39
David Crow30-Oct-09 4:39 
QuestionTimerAPCProc() Not Being Called With SetWaitableTimer() Pin
Hummer209729-Oct-09 13:48
Hummer209729-Oct-09 13:48 
I wrote the below code in an attempt to set a 500ms timer. CreateWaitableTimer returns a valid handle and SetWaitableTimer() returns 1 indicating success, however TimerAPCProc() never gets called. Can anybody see what's wrong with this code?

VOID CALLBACK __stdcall TimerAPCProc(LPVOID lpArgToCompletionRoutine, <br />
DWORD dwTimerLowValue, DWORD dwTimerHighValue)<br />
{<br />
<br />
}<br />
<br />
void SetTimer()<br />
{<br />
        m_hTimer = CreateWaitableTimer(NULL, false, NULL);<br />
	LARGE_INTEGER liInterval;<br />
	liInterval.QuadPart = -500000000;<br />
	int dSuccess = SetWaitableTimer(m_hTimer, &liInterval, 0, TimerAPCProc, NULL, false);<br />
}


Thanks for any help you can offer.
AnswerRe: TimerAPCProc() Not Being Called With SetWaitableTimer() Pin
Mauro Leggieri29-Oct-09 17:53
Mauro Leggieri29-Oct-09 17:53 
GeneralRe: TimerAPCProc() Not Being Called With SetWaitableTimer() Pin
Hummer209730-Oct-09 3:45
Hummer209730-Oct-09 3:45 
QuestionHow to read and write to a BINARY file? Pin
dipuks29-Oct-09 13:46
dipuks29-Oct-09 13:46 
AnswerRe: How to read and write to a BINARY file? Pin
Member 419459329-Oct-09 14:05
Member 419459329-Oct-09 14:05 
AnswerRe: How to read and write to a BINARY file? Pin
enhzflep29-Oct-09 14:06
enhzflep29-Oct-09 14:06 
GeneralRe: How to read and write to a BINARY file? Pin
dipuks29-Oct-09 16:27
dipuks29-Oct-09 16:27 
GeneralRe: How to read and write to a BINARY file? Pin
enhzflep29-Oct-09 16:53
enhzflep29-Oct-09 16:53 
AnswerRe: How to read and write to a BINARY file? Pin
David Crow29-Oct-09 18:01
David Crow29-Oct-09 18:01 
AnswerRe: How to read and write to a BINARY file? Pin
Adam Roderick J29-Oct-09 18:58
Adam Roderick J29-Oct-09 18:58 
QuestionA General Problem Pin
WindowsVsLinux29-Oct-09 9:49
WindowsVsLinux29-Oct-09 9:49 
AnswerRe: A General Problem Pin
«_Superman_»29-Oct-09 10:04
professional«_Superman_»29-Oct-09 10:04 
GeneralRe: A General Problem Pin
WindowsVsLinux29-Oct-09 19:03
WindowsVsLinux29-Oct-09 19:03 
QuestionRe: A General Problem Pin
David Crow29-Oct-09 10:30
David Crow29-Oct-09 10:30 
AnswerRe: A General Problem Pin
WindowsVsLinux29-Oct-09 19:05
WindowsVsLinux29-Oct-09 19:05 
AnswerRe: A General Problem Pin
enhzflep29-Oct-09 10:36
enhzflep29-Oct-09 10:36 
GeneralRe: A General Problem Pin
WindowsVsLinux29-Oct-09 19:08
WindowsVsLinux29-Oct-09 19:08 
GeneralRe: A General Problem Pin
Adam Roderick J29-Oct-09 19:21
Adam Roderick J29-Oct-09 19:21 

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.