Click here to Skip to main content
15,896,153 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralPut the suo and ncb files in another directory Pin
Anonymous28-Apr-04 8:03
Anonymous28-Apr-04 8:03 
GeneralRe: Put the suo and ncb files in another directory Pin
Anonymous28-Apr-04 8:18
Anonymous28-Apr-04 8:18 
GeneralRe: Put the suo and ncb files in another directory Pin
David Crow28-Apr-04 8:55
David Crow28-Apr-04 8:55 
GeneralRe: Put the suo and ncb files in another directory Pin
Anonymous28-Apr-04 9:15
Anonymous28-Apr-04 9:15 
QuestionThread and UpdateData?? Pin
bryanbryan28-Apr-04 7:12
bryanbryan28-Apr-04 7:12 
AnswerRe: Thread and UpdateData?? Pin
David Crow28-Apr-04 7:25
David Crow28-Apr-04 7:25 
GeneralToolbox and VC++.NET Pin
pmdanger28-Apr-04 7:03
pmdanger28-Apr-04 7:03 
GeneralPassing classes into threads Pin
roadragedave28-Apr-04 6:58
roadragedave28-Apr-04 6:58 
Im creating threads and I want to pass a pointer to the threads, Is is possible to cast a pointer to a class into a DWORD, if so, how is it done???
Here is the code Im working with, its taken straight from the MSDN

void main(void){<br />
<br />
DWORD loadPerThrdID;<br />
HANDLE loadPerThrd;<br />
TCHAR szMsg[80];<br />
<br />
DWORD dwThrdParam; <br />
	<br />
static WmiWrapper Wmi(NULL, NULL, NULL); //Creating object<br />
<br />
loadPerThrd = CreateThread(<br />
	        NULL, 0, <br />
		loadPerThrdFunc,<br />
		&dwThrdParam,<br />
		0, &loadPerThrdID);<br />
		<br />
if(loadPerThrd == NULL){<br />
	wsprintf(szMsg, (TEXT("Create Thread failed for LoadPercentage")));<br />
	MessageBox(NULL, szMsg, NULL, MB_OK);<br />
}<br />
else{<br />
	_getch();<br />
	CloseHandle(loadPerThrd);<br />
}<br />
}<br />
<br />
//Threads function<br />
DWORD WINAPI loadPerThrdFunc (WmiWrapper Wmi)<br />
{<br />
................<br />
} 


What can I do to get this to work, or am I completly out??????
GeneralRe: Passing classes into threads Pin
David Crow28-Apr-04 7:19
David Crow28-Apr-04 7:19 
GeneralRe: Passing classes into threads Pin
roadragedave28-Apr-04 8:31
roadragedave28-Apr-04 8:31 
GeneralRe: Passing classes into threads Pin
David Crow28-Apr-04 8:52
David Crow28-Apr-04 8:52 
GeneralRe: Passing classes into threads Pin
roadragedave28-Apr-04 8:55
roadragedave28-Apr-04 8:55 
GeneralRe: Passing classes into threads Pin
David Crow28-Apr-04 9:00
David Crow28-Apr-04 9:00 
GeneralRe: Passing classes into threads Pin
roadragedave28-Apr-04 9:11
roadragedave28-Apr-04 9:11 
GeneralRe: Passing classes into threads Pin
David Crow28-Apr-04 9:15
David Crow28-Apr-04 9:15 
GeneralRe: Passing classes into threads Pin
roadragedave28-Apr-04 9:24
roadragedave28-Apr-04 9:24 
GeneralRe: Passing classes into threads Pin
Michael Dunn28-Apr-04 14:05
sitebuilderMichael Dunn28-Apr-04 14:05 
GeneralRe: Passing classes into threads Pin
Jitendra gangwar28-Apr-04 19:05
Jitendra gangwar28-Apr-04 19:05 
GeneralRe: Passing classes into threads Pin
roadragedave28-Apr-04 22:58
roadragedave28-Apr-04 22:58 
GeneralRe: Passing classes into threads Pin
Paul Ranson28-Apr-04 23:36
Paul Ranson28-Apr-04 23:36 
GeneralRe: Passing classes into threads Pin
Jitendra gangwar29-Apr-04 1:33
Jitendra gangwar29-Apr-04 1:33 
Questionhow can i dynamically get my machine ip address ? Pin
Marco M.28-Apr-04 6:17
Marco M.28-Apr-04 6:17 
AnswerRe: how can i dynamically get my machine ip address ? Pin
David Crow28-Apr-04 7:03
David Crow28-Apr-04 7:03 
AnswerRe: how can i dynamically get my machine ip address ? Pin
toxcct28-Apr-04 7:09
toxcct28-Apr-04 7:09 
AnswerRe: how can i dynamically get my machine ip address ? Pin
RNEELY28-Apr-04 8:16
RNEELY28-Apr-04 8:16 

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.