Click here to Skip to main content
15,914,322 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to create a dialog box? Pin
chandu00414-Oct-07 21:18
chandu00414-Oct-07 21:18 
QuestionRe: how to create a dialog box? Pin
Roger Broomfield14-Oct-07 21:43
Roger Broomfield14-Oct-07 21:43 
AnswerRe: how to create a dialog box? Pin
chandu00414-Oct-07 21:54
chandu00414-Oct-07 21:54 
GeneralRe: how to create a dialog box? Pin
JudyL_MD15-Oct-07 2:35
JudyL_MD15-Oct-07 2:35 
GeneralRe: how to create a dialog box? Pin
David Crow15-Oct-07 4:20
David Crow15-Oct-07 4:20 
AnswerRe: how to create a dialog box? Pin
Nibu babu thomas14-Oct-07 21:24
Nibu babu thomas14-Oct-07 21:24 
QuestionADsSecurity.dll [modified] Pin
narayanagvs14-Oct-07 20:04
narayanagvs14-Oct-07 20:04 
Questionabout two or more processes ReadWrite a file simultaneity? Pin
HOW WHAT14-Oct-07 19:52
HOW WHAT14-Oct-07 19:52 
AnswerRe: about two or more processes ReadWrite a file simultaneity? Pin
chandu00414-Oct-07 21:25
chandu00414-Oct-07 21:25 
GeneralRe: about two or more processes ReadWrite a file simultaneity? Pin
Naveen14-Oct-07 21:46
Naveen14-Oct-07 21:46 
GeneralRe: about two or more processes ReadWrite a file simultaneity? Pin
chandu00414-Oct-07 21:56
chandu00414-Oct-07 21:56 
AnswerRe: about two or more processes ReadWrite a file simultaneity? Pin
Naveen14-Oct-07 21:45
Naveen14-Oct-07 21:45 
QuestionAbout Windows Media Encoder SDK Pin
zakkas248314-Oct-07 18:28
zakkas248314-Oct-07 18:28 
Questiona problem about AllocSysString() Pin
nibabug14-Oct-07 17:34
nibabug14-Oct-07 17:34 
AnswerRe: a problem about AllocSysString() Pin
chandu00414-Oct-07 21:33
chandu00414-Oct-07 21:33 
QuestionHow to pass a struct to worker thread? [modified] Pin
kuibing14-Oct-07 16:54
kuibing14-Oct-07 16:54 
<br />
void func()<br />
{<br />
struct SInfo SOCKINFO;<br />
SOCKINFO.pThis = this;<br />
SOCKINFO.ClientSocket = sockClient;<br />
strcpy(SOCKINFO.szClientIP, szClientIP);<br />
memset(SOCKINFO.szMessage, 0, BUFFER_SIZE);<br />
hThread = (HANDLE)_beginthreadex(NULL, 0, WorkThread, (LPVOID)&SOCKINFO, 0, NULL);<br />
}<br />


but,when WorkThread() is running,I'm worried about func() have been finished result in "struct SInfo SOCKINFO" be released.That's WorkThread() must be obtain a correct "struct SInfo SOCKINFO"?


UINT CServerSocket::WorkThread(LPVOID pParam)<br />
{<br />
	struct SInfo Param;<br />
	struct SInfo *lpParam = (struct SInfo*)pParam;<br />
//        ...etc<br />
}





-- modified at 23:16 Sunday 14th October, 2007
AnswerRe: How to pass a struct to worker thread? Pin
David Crow14-Oct-07 16:59
David Crow14-Oct-07 16:59 
Generalthanks a lot~ Pin
kuibing14-Oct-07 17:21
kuibing14-Oct-07 17:21 
QuestionDifferent Right menu for different area Pin
Michel_Huang14-Oct-07 16:54
Michel_Huang14-Oct-07 16:54 
AnswerRe: Different Right menu for different area Pin
David Crow14-Oct-07 17:01
David Crow14-Oct-07 17:01 
AnswerRe: Different Right menu for different area Pin
kuibing14-Oct-07 17:03
kuibing14-Oct-07 17:03 
GeneralRe: Different Right menu for different area Pin
Michel_Huang14-Oct-07 17:14
Michel_Huang14-Oct-07 17:14 
AnswerRe: Different Right menu for different area Pin
Michel_Huang14-Oct-07 17:13
Michel_Huang14-Oct-07 17:13 
QuestionHow to clone a dialog Pin
s196675m14-Oct-07 13:47
s196675m14-Oct-07 13:47 
QuestionRe: How to clone a dialog Pin
David Crow14-Oct-07 17:03
David Crow14-Oct-07 17:03 

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.