Click here to Skip to main content
14,930,087 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionMACRO for pulling source/function name for display Pin
Like2Byte4-Sep-07 4:17
MemberLike2Byte4-Sep-07 4:17 
AnswerRe: MACRO for pulling source/function name for display Pin
led mike4-Sep-07 4:31
Memberled mike4-Sep-07 4:31 
GeneralRe: MACRO for pulling source/function name for display Pin
Like2Byte4-Sep-07 4:34
MemberLike2Byte4-Sep-07 4:34 
AnswerRe: MACRO for pulling source/function name for display Pin
cmk4-Sep-07 13:43
Membercmk4-Sep-07 13:43 
QuestionIcon problem for dialog of MFC DLL. Pin
Mushtaque Nizamani4-Sep-07 4:06
MemberMushtaque Nizamani4-Sep-07 4:06 
AnswerRe: Icon problem for dialog of MFC DLL. Pin
Derrick Becker4-Sep-07 4:17
MemberDerrick Becker4-Sep-07 4:17 
GeneralRe: Icon problem for dialog of MFC DLL. Pin
Mushtaque Nizamani4-Sep-07 5:23
MemberMushtaque Nizamani4-Sep-07 5:23 
QuestionHow can I specify absolute time with SetWaitableTimer() [modified] Pin
peteryenyen4-Sep-07 4:00
Memberpeteryenyen4-Sep-07 4:00 
I want to use SetWaitableTimer() to wake up system.

I use the following code :

    <br />
    void SetTimer()<br />
    {<br />
	HANDLE			hTimer = NULL;<br />
        LARGE_INTEGER	liDueTime;<br />
	__int64         qwDueTime;<br />
<br />
        // Create a waitable timer.<br />
        hTimer = CreateWaitableTimer(NULL, TRUE, "C&E RC WaitableTimer");<br />
<br />
	SYSTEMTIME stStartTime<br />
	CTime StartTime<br />
	currentTime.GetAsSystemTime(st);<br />
<br />
	CTimeSpan tsOneDay(0, 0, 1, 0);<br />
<br />
        time = time + tsOneDay;<br />
	time.GetAsSystemTime(stStartTime);<br />
  <br />
	FILETIME filetime;<br />
<br />
	SystemTimeToFileTime(&stStartTime, &filetime);<br />
<br />
	liDueTime.LowPart = filetime.dwLowDateTime;<br />
	liDueTime.HighPart = filetime.dwHighDateTime;<br />
<br />
        SetWaitableTimer(hTimer, &liDueTime, 0, NULL, NULL, TRUE);

}

I would like to specify absolute time, but it doesn' work !

The absolute time in this example is one minute from current time.




-- modified at 19:49 Tuesday 4th September, 2007
AnswerRe: How can I specify absolute time with SetWaitableTimer() Pin
led mike4-Sep-07 4:51
Memberled mike4-Sep-07 4:51 
GeneralRe: How can I specify absolute time with SetWaitableTimer() Pin
peteryenyen4-Sep-07 13:51
Memberpeteryenyen4-Sep-07 13:51 
GeneralRe: How can I specify absolute time with SetWaitableTimer() Pin
led mike5-Sep-07 5:29
Memberled mike5-Sep-07 5:29 
QuestionWhen is CWnd valid? Pin
charlieg4-Sep-07 3:43
Membercharlieg4-Sep-07 3:43 
AnswerRe: When is CWnd valid? Pin
led mike4-Sep-07 4:38
Memberled mike4-Sep-07 4:38 
GeneralRe: When is CWnd valid? Pin
charlieg4-Sep-07 6:05
Membercharlieg4-Sep-07 6:05 
GeneralRe: When is CWnd valid? Pin
led mike4-Sep-07 11:54
Memberled mike4-Sep-07 11:54 
QuestionWindows message order? Pin
charlieg4-Sep-07 3:26
Membercharlieg4-Sep-07 3:26 
AnswerRe: Windows message order? Pin
Hamed Musavi4-Sep-07 5:50
MemberHamed Musavi4-Sep-07 5:50 
GeneralRe: Windows message order? Pin
charlieg4-Sep-07 5:56
Membercharlieg4-Sep-07 5:56 
GeneralRe: Windows message order? Pin
Hamed Musavi4-Sep-07 6:32
MemberHamed Musavi4-Sep-07 6:32 
AnswerRe: Windows message order? Pin
Mark Salsbery4-Sep-07 6:15
MemberMark Salsbery4-Sep-07 6:15 
GeneralRe: Windows message order? Pin
charlieg4-Sep-07 6:33
Membercharlieg4-Sep-07 6:33 
GeneralRe: Windows message order? Pin
Mark Salsbery4-Sep-07 6:49
MemberMark Salsbery4-Sep-07 6:49 
QuestionAbout IHTML Interface ... need your help Pin
Ryu Jin4-Sep-07 3:21
MemberRyu Jin4-Sep-07 3:21 
QuestionHelp - clistctrl drag image only showing icon, no text Pin
Derrick Becker4-Sep-07 3:14
MemberDerrick Becker4-Sep-07 3:14 
QuestionRe: Help - clistctrl drag image only showing icon, no text Pin
Derrick Becker4-Sep-07 5:17
MemberDerrick Becker4-Sep-07 5:17 

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.