Click here to Skip to main content
15,902,276 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Obtaining process name from process handle Pin
hxhl9520-Mar-09 6:08
hxhl9520-Mar-09 6:08 
AnswerRe: Obtaining process name from process handle Pin
David Crow20-Mar-09 7:16
David Crow20-Mar-09 7:16 
GeneralRe: Obtaining process name from process handle Pin
hxhl9520-Mar-09 7:23
hxhl9520-Mar-09 7:23 
QuestionRe: Obtaining process name from process handle Pin
David Crow20-Mar-09 7:31
David Crow20-Mar-09 7:31 
QuestionRe: Obtaining process name from process handle Pin
hxhl9520-Mar-09 8:04
hxhl9520-Mar-09 8:04 
AnswerRe: Obtaining process name from process handle Pin
David Crow20-Mar-09 8:16
David Crow20-Mar-09 8:16 
GeneralRe: Obtaining process name from process handle Pin
hxhl9520-Mar-09 10:08
hxhl9520-Mar-09 10:08 
QuestionMFC + Threading = C2665 Pin
Killiconn19-Mar-09 14:43
Killiconn19-Mar-09 14:43 
I have been surfing the web trying to find a solution and I've tried some of them and still can't compile. It is a standard VS generated DlgClass and I just want to launch the worker which is prototyped up top as global. I've tried casting ExecuteThread every way possible pretty much in the thread launch function. Any obvious solutions?

// Prototypes:
void ExecuteThread(LPVOID lParam)


// Button to launch the worker:
void CVisualEmulatorDlg::OnBnClickedRun()
{
	HWND hWnd = GetSafeHwnd();

	CWinThread *pThread = AfxBeginThread(ExecuteThread, hWnd, THREAD_PRIORITY_NORMAL);
	
	//cpu->Execute();
}

// Worker Thread:
void ExecuteThread(LPVOID lParam)
{

        //cpu->Execute();

	MessageBox( (HWND)lParam, (LPCWSTR)"Thread Start", (LPCWSTR)"Secondary Thread", MB_OK );
	return;
}

AnswerRe: MFC + Threading = C2665 Pin
«_Superman_»19-Mar-09 19:03
professional«_Superman_»19-Mar-09 19:03 
GeneralRe: MFC + Threading = C2665 Pin
Killiconn20-Mar-09 10:50
Killiconn20-Mar-09 10:50 
GeneralRe: MFC + Threading = C2665 Pin
«_Superman_»21-Mar-09 3:34
professional«_Superman_»21-Mar-09 3:34 
GeneralRe: MFC + Threading = C2665 Pin
Killiconn21-Mar-09 10:01
Killiconn21-Mar-09 10:01 
AnswerRe: MFC + Threading = C2665 Pin
_AnsHUMAN_ 19-Mar-09 19:08
_AnsHUMAN_ 19-Mar-09 19:08 
AnswerRe: MFC + Threading = C2665 Pin
Sunil Lanke19-Mar-09 19:09
Sunil Lanke19-Mar-09 19:09 
QuestionAnother Post from Bob about Threads, Pointers and Locks[modified] Pin
BobInNJ19-Mar-09 10:45
BobInNJ19-Mar-09 10:45 
AnswerRe: Another Post from Bob about Threads and Points Pin
Code-o-mat19-Mar-09 12:31
Code-o-mat19-Mar-09 12:31 
GeneralRe: Another Post from Bob about Threads and Points Pin
BobInNJ19-Mar-09 12:39
BobInNJ19-Mar-09 12:39 
GeneralRe: Another Post from Bob about Threads and Points Pin
bulg19-Mar-09 13:39
bulg19-Mar-09 13:39 
GeneralRe: Another Post from Bob about Threads and Points Pin
BobInNJ19-Mar-09 13:58
BobInNJ19-Mar-09 13:58 
QuestionThreads and Pointers Pin
BobInNJ19-Mar-09 7:36
BobInNJ19-Mar-09 7:36 
AnswerRe: Threads and Pointers Pin
led mike19-Mar-09 7:41
led mike19-Mar-09 7:41 
AnswerRe: Threads and Pointers Pin
Eytukan19-Mar-09 7:41
Eytukan19-Mar-09 7:41 
GeneralRe: Threads and Pointers Pin
led mike19-Mar-09 7:58
led mike19-Mar-09 7:58 
GeneralRe: Threads and Pointers Pin
Eytukan19-Mar-09 8:12
Eytukan19-Mar-09 8:12 
AnswerRe: Threads and Pointers Pin
CPallini19-Mar-09 7:46
mveCPallini19-Mar-09 7:46 

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.