Click here to Skip to main content
15,900,110 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
The reason I ended up trying void, along with any other things is that UNIT dosn't show up as a data type. Is there a header that needs to be included? Having trouble researching it because everything that comes back is about unit testing.

From one page it looked like UNIT meant use, int, long, or short, but tried and non of those worked. Tried with and without the __cdecl as well.

Never come across the UNIT before and wishing right now I never had. Code looks basically the same. Any ideas?

// Launcher
void CVisualEmulatorDlg::OnBnClickedRun()
{
	HWND hWnd = GetSafeHwnd();

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

// Worker
UNIT __cdecl ExecuteThread(LPVOID lParam)
{
	MessageBox( (HWND)lParam, (LPCWSTR)"Thread Start", (LPCWSTR)"Secondary Thread", MB_OK );
}

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 
GeneralRe: Threads and Pointers Pin
led mike19-Mar-09 9:42
led mike19-Mar-09 9:42 
AnswerRe: Threads and Pointers Pin
cmk19-Mar-09 13:17
cmk19-Mar-09 13: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.