Click here to Skip to main content
15,894,540 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: UINT ThreadProc(LPVOID param) Pin
susanne13-Aug-09 3:09
susanne13-Aug-09 3:09 
GeneralRe: UINT ThreadProc(LPVOID param) Pin
Richard Andrew x643-Aug-09 4:10
professionalRichard Andrew x643-Aug-09 4:10 
Questionsaving file in unicode format Pin
Rakesh531-Jul-09 1:47
Rakesh531-Jul-09 1:47 
AnswerRe: saving file in unicode format Pin
HimanshuJoshi31-Jul-09 2:01
HimanshuJoshi31-Jul-09 2:01 
Questionlatest version of Dr. Watson, the dump must be suitable to open ind VS 2005 Team edition Pin
ptr_Electron31-Jul-09 1:32
ptr_Electron31-Jul-09 1:32 
AnswerRe: latest version of Dr. Watson, the dump must be suitable to open ind VS 2005 Team edition Pin
Randor 31-Jul-09 15:52
professional Randor 31-Jul-09 15:52 
QuestionExcludeClipRect Pin
kumar sanghvi31-Jul-09 1:21
kumar sanghvi31-Jul-09 1:21 
AnswerRe: ExcludeClipRect Pin
CPallini31-Jul-09 1:31
mveCPallini31-Jul-09 1:31 
Questionproblem in reading characters from a file.. Pin
Rakesh531-Jul-09 1:08
Rakesh531-Jul-09 1:08 
AnswerRe: problem in reading characters from a file.. Pin
Rajesh R Subramanian31-Jul-09 6:48
professionalRajesh R Subramanian31-Jul-09 6:48 
AnswerRe: problem in reading characters from a file.. Pin
Bacon Ultimate Cheeseburger1-Aug-09 1:10
Bacon Ultimate Cheeseburger1-Aug-09 1:10 
QuestionAdding VBA user interface to MFC application Pin
ulretsam31-Jul-09 0:58
ulretsam31-Jul-09 0:58 
AnswerRe: Adding VBA user interface to MFC application Pin
Randor 31-Jul-09 16:00
professional Randor 31-Jul-09 16:00 
Questiondisplay 256 color bitmap image Pin
adichavan31-Jul-09 0:42
adichavan31-Jul-09 0:42 
AnswerRe: display 256 color bitmap image Pin
Adam Roderick J31-Jul-09 0:45
Adam Roderick J31-Jul-09 0:45 
GeneralRe: display 256 color bitmap image Pin
adichavan31-Jul-09 0:56
adichavan31-Jul-09 0:56 
GeneralRe: display 256 color bitmap image [modified] Pin
Adam Roderick J31-Jul-09 1:03
Adam Roderick J31-Jul-09 1:03 
GeneralRe: display 256 color bitmap image Pin
adichavan31-Jul-09 1:21
adichavan31-Jul-09 1:21 
GeneralRe: display 256 color bitmap image Pin
Adam Roderick J31-Jul-09 1:45
Adam Roderick J31-Jul-09 1:45 
GeneralRe: display 256 color bitmap image Pin
adichavan31-Jul-09 19:40
adichavan31-Jul-09 19:40 
QuestionThread Event Objects Pin
susanne131-Jul-09 0:25
susanne131-Jul-09 0:25 
AnswerRe: Thread Event Objects Pin
«_Superman_»31-Jul-09 0:56
professional«_Superman_»31-Jul-09 0:56 
AnswerRe: Thread Event Objects Pin
Garth J Lancaster31-Jul-09 1:02
professionalGarth J Lancaster31-Jul-09 1:02 
have a look at this

http://msdn.microsoft.com/en-us/library/k35k2bfs(VS.80).aspx[^]

look carefully at "The type of the function must be afx_msg LRESULT (CWnd::*)(WPARAM, LPARAM).", their example

// implementation for WM_MYMESSAGE handler
LRESULT CMyWnd::OnMyMessage( WPARAM wParam, LPARAM lParam ) 
{
   // ... Handle message here
   return 0L;
}


vs yours ..

int CThreadView::OnCreate(LPCREATESTRUCT lpCreateStruct) 


interestingly, your "OnThreadended" ie

LONG CThreadView::OnThreadended(WPARAM wParam, LPARAM lParam) 
{
CString strThreadEnd = _T("Thread ended.");

AfxMessageBox(strThreadEnd, 0,0);

return 0;
} 


appears ok
GeneralRe: Thread Event Objects Pin
susanne131-Jul-09 2:22
susanne131-Jul-09 2:22 
Questionmatch the character of a string Pin
vikas choudhry31-Jul-09 0:04
vikas choudhry31-Jul-09 0:04 

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.