Click here to Skip to main content
15,916,462 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalabout LoadLibrary Pin
Maer72724-Oct-01 2:31
Maer72724-Oct-01 2:31 
GeneralRe: about LoadLibrary Pin
Tomasz Sowinski24-Oct-01 3:40
Tomasz Sowinski24-Oct-01 3:40 
Generala simple problem about Dll Pin
Maer72724-Oct-01 2:27
Maer72724-Oct-01 2:27 
GeneralRe: a simple problem about Dll Pin
Steen Krogsgaard24-Oct-01 4:36
Steen Krogsgaard24-Oct-01 4:36 
Generaljust a test. don't bother.... Pin
Gilbert Jeiziner24-Oct-01 2:02
Gilbert Jeiziner24-Oct-01 2:02 
GeneralWhy do not use SetTimer() in CMyView:CListView Pin
24-Oct-01 0:42
suss24-Oct-01 0:42 
GeneralRe: Why do not use SetTimer() in CMyView:CListView Pin
Masaaki Onishi24-Oct-01 4:31
Masaaki Onishi24-Oct-01 4:31 
GeneralRe: Why do not use SetTimer() in CMyView:CListView Pin
Steen Krogsgaard24-Oct-01 4:42
Steen Krogsgaard24-Oct-01 4:42 
I have just tested it on my system, at it works without problems! I set a timer in OnInitialUpdate and handle it in OnTimer (where it's also killed).

void CTest2View::OnInitialUpdate() 
{
	CView::OnInitialUpdate();
	m_iTimer = SetTimer(1, 1000, NULL);
	// TODO: Add your specialized code here and/or call the base class
	
}

void CTest2View::OnTimer(UINT nIDEvent) 
{
	// TODO: Add your message handler code here and/or call default
	KillTimer(m_iTimer);
	AfxMessageBox("Timer received");
	
	CView::OnTimer(nIDEvent);
}


Running the app gives me a "Timer received" message box after 1 second.

Cheers
Steen.

"To claim that computer games influence children is rediculous. If Pacman had influenced children born in the 80'ies we would see a lot of youngsters running around in dark rooms eating pills while listening to monotonous music"
GeneralRe: Why do not use SetTimer() in CMyView:CListView Pin
Tomasz Sowinski24-Oct-01 6:26
Tomasz Sowinski24-Oct-01 6:26 
QuestionMul64 function, how to include? Pin
24-Oct-01 0:37
suss24-Oct-01 0:37 
AnswerRe: Mul64 function, how to include? Pin
Tomasz Sowinski24-Oct-01 0:42
Tomasz Sowinski24-Oct-01 0:42 
GeneralRe: Mul64 function, how to include? Pin
24-Oct-01 23:22
suss24-Oct-01 23:22 
GeneralRe: Mul64 function, how to include? Pin
Alvaro Mendez26-Oct-01 11:53
Alvaro Mendez26-Oct-01 11:53 
GeneralDistributing Fonts Pin
David Lantsman24-Oct-01 0:05
David Lantsman24-Oct-01 0:05 
GeneralRe: Distributing Fonts Pin
#realJSOP24-Oct-01 0:55
professional#realJSOP24-Oct-01 0:55 
GeneralRe: Distributing Fonts Pin
markkuk24-Oct-01 1:19
markkuk24-Oct-01 1:19 
GeneralProvide ATL/DLL to Delphi programmer Pin
mimi23-Oct-01 23:51
mimi23-Oct-01 23:51 
GeneralLoading Icons Pin
Drawil23-Oct-01 22:56
Drawil23-Oct-01 22:56 
GeneralRe: Loading Icons Pin
Eugene Pustovoyt24-Oct-01 0:01
Eugene Pustovoyt24-Oct-01 0:01 
GeneralRe: Loading Icons Pin
Drawil24-Oct-01 9:41
Drawil24-Oct-01 9:41 
GeneralC DLL Wraper Pin
Biggy23-Oct-01 22:45
Biggy23-Oct-01 22:45 
Questioncase insensitive compare??? Pin
Tryhard23-Oct-01 22:37
Tryhard23-Oct-01 22:37 
AnswerRe: case insensitive compare??? Pin
Jon Sagara23-Oct-01 22:41
Jon Sagara23-Oct-01 22:41 
AnswerRe: case insensitive compare??? Pin
Jonas Larsson23-Oct-01 22:46
Jonas Larsson23-Oct-01 22:46 
AnswerRe: case insensitive compare??? Pin
Tomasz Sowinski24-Oct-01 0:21
Tomasz Sowinski24-Oct-01 0: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.