Click here to Skip to main content
16,008,183 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CreateEvent/WaitForSingleObject? (Event related to a change in a variable...) Pin
Joan M9-Oct-02 1:32
professionalJoan M9-Oct-02 1:32 
GeneralwParam & lParam Pin
stevenson9-Oct-02 0:01
stevenson9-Oct-02 0:01 
GeneralRe: wParam & lParam Pin
jmkhael9-Oct-02 0:08
jmkhael9-Oct-02 0:08 
GeneralRe: wParam & lParam Pin
stevenson9-Oct-02 0:11
stevenson9-Oct-02 0:11 
GeneralRe: wParam & lParam Pin
jmkhael9-Oct-02 0:29
jmkhael9-Oct-02 0:29 
GeneralRe: wParam & lParam Pin
stevenson9-Oct-02 1:02
stevenson9-Oct-02 1:02 
GeneralRe: wParam & lParam Pin
Jon Hulatt9-Oct-02 1:21
Jon Hulatt9-Oct-02 1:21 
GeneralRe: wParam & lParam Pin
stevenson9-Oct-02 1:43
stevenson9-Oct-02 1:43 
Still can't work, because of datatype casting.

suppose, I want to send two parameters, one is BYTE* m_pByte, the other, int m_nLen. Then, I use PostThreadMessage Like this,
::PostThreadMessage(m_threadID,WM_DATA_ARRIVAL,(WPARAM)m_pByte,(LPARAM)m_nLen);


Now I use GetMessage() to get the message (here is WM_DATA_ARRIVAL) as well as m_pByte and m_nLen,


 <br />
   ...<br />
   	MSG msg;<br />
	while(::GetMessage(&msg, NULL, 0,0))<br />
	{<br />
		switch(msg.message)<br />
		{<br />
		case WM_RXD_ARRIVAL:<br />
			AfxMessageBox(msg.lParam);<br />
			break;<br />
		default:<br />
			break;<br />
<br />
		};<br />
	};<br />
   ...<br />




and I got the Error MessageBox.

Extreme programming. Do the No.1
GeneralRe: wParam & lParam Pin
Jon Hulatt9-Oct-02 2:45
Jon Hulatt9-Oct-02 2:45 
GeneralRegistry Pin
homer6668-Oct-02 23:55
homer6668-Oct-02 23:55 
GeneralRe: Registry Pin
jmkhael8-Oct-02 23:58
jmkhael8-Oct-02 23:58 
GeneralSend E-Mail ... ShellExecuteEx ... Pin
Anonymous8-Oct-02 23:54
Anonymous8-Oct-02 23:54 
QuestionHow to Include a CALLBACK function in a class? Pin
stevenson8-Oct-02 22:59
stevenson8-Oct-02 22:59 
AnswerRe: How to Include a CALLBACK function in a class? Pin
Daniel Strigl8-Oct-02 23:51
Daniel Strigl8-Oct-02 23:51 
GeneralCan't find article on creating messages in build window Pin
Cathy8-Oct-02 22:49
Cathy8-Oct-02 22:49 
GeneralRe: Can't find article on creating messages in build window Pin
Andreas Saurwein8-Oct-02 23:34
Andreas Saurwein8-Oct-02 23:34 
GeneralRe: Can't find article on creating messages in build window Pin
Cathy10-Oct-02 10:33
Cathy10-Oct-02 10:33 
Generalfile rename using wildcards Pin
Member 3258528-Oct-02 22:08
Member 3258528-Oct-02 22:08 
Generalevent and serial Pin
faerii8-Oct-02 22:01
faerii8-Oct-02 22:01 
GeneralRelease Mode Pin
raj krishna8-Oct-02 21:21
raj krishna8-Oct-02 21:21 
GeneralRe: Release Mode Pin
Gero Gerber8-Oct-02 21:44
Gero Gerber8-Oct-02 21:44 
GeneralRe: Release Mode Pin
jfro8-Oct-02 21:52
jfro8-Oct-02 21:52 
QuestionHELP! How to capture image from a fingerprint mouse? Pin
writeln8-Oct-02 20:36
writeln8-Oct-02 20:36 
AnswerRe: HELP! How to capture image from a fingerprint mouse? Pin
Paul M Watt8-Oct-02 20:42
mentorPaul M Watt8-Oct-02 20:42 
AnswerRe: HELP! How to capture image from a fingerprint mouse? Pin
Philip Fitzsimons9-Oct-02 0:44
Philip Fitzsimons9-Oct-02 0:44 

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.