Click here to Skip to main content
15,880,608 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Application Error Pin
Hans Dietrich24-Jan-11 1:25
mentorHans Dietrich24-Jan-11 1:25 
AnswerRe: Application Error Pin
Stephen Hewitt24-Jan-11 1:45
Stephen Hewitt24-Jan-11 1:45 
AnswerRe: Application Error Pin
Malli_S24-Jan-11 2:11
Malli_S24-Jan-11 2:11 
GeneralRe: Application Error Pin
shiv@nand24-Jan-11 4:26
shiv@nand24-Jan-11 4:26 
GeneralRe: Application Error Pin
Hans Dietrich24-Jan-11 4:35
mentorHans Dietrich24-Jan-11 4:35 
GeneralRe: Application Error Pin
shiv@nand24-Jan-11 4:38
shiv@nand24-Jan-11 4:38 
GeneralRe: Application Error Pin
Hans Dietrich24-Jan-11 4:48
mentorHans Dietrich24-Jan-11 4:48 
GeneralRe: Application Error [modified] Pin
shiv@nand24-Jan-11 5:01
shiv@nand24-Jan-11 5:01 
i have created parent thread,

AfxBeginThread(parent,this,THREAD_PRIORITY_NORMAL,0,0,NULL);


declaration :
class CTestApp : public CWinApp
{

public:
static UINT parent(LPVOID lpParam);
static UINT child(LPVOID lpParam);
/////////////////////////////////////////////////////////////////////////////


definition:

UINT CTestApp::parent(LPVOID lpParam) //multiple client request the parent
{
//.....
//listening socket and create new thread
if(!csBuffer.IsEmpty())//data is not empty
{
CWinThread *Thread = NULL;
Thread = AfxBeginThread(child,(LPVOID)&someValue,THREAD_PRIORITY_NORMAL,0,0,NULL); //Here only i am getting the apllication error (Not Creating Multiple thead)
}

return 1;
}

UINT CTestApp::child(LPVOID lpParam) //mulitple times its has to created
{
//do stuff
return 1;
}

i hope this time i have given clearly my problem. I am tryng to create a multiple threads



-- Modified Monday, January 24, 2011 11:08 AM
QuestionRe: Application Error Pin
David Crow24-Jan-11 5:29
David Crow24-Jan-11 5:29 
QuestionDiffrent language string data problem? Pin
Le@rner23-Jan-11 23:35
Le@rner23-Jan-11 23:35 
AnswerRe: Diffrent language string data problem? Pin
Andrew Brock23-Jan-11 23:41
Andrew Brock23-Jan-11 23:41 
GeneralRe: Diffrent language string data problem? Pin
Le@rner23-Jan-11 23:43
Le@rner23-Jan-11 23:43 
GeneralRe: Diffrent language string data problem? Pin
Andrew Brock23-Jan-11 23:51
Andrew Brock23-Jan-11 23:51 
GeneralRe: Diffrent language string data problem? Pin
Le@rner23-Jan-11 23:53
Le@rner23-Jan-11 23:53 
AnswerRe: Diffrent language string data problem? Pin
ShilpiP24-Jan-11 0:39
ShilpiP24-Jan-11 0:39 
QuestionMulti Threaded program With allegro. Pin
Thilina.madush23-Jan-11 23:16
Thilina.madush23-Jan-11 23:16 
AnswerRe: Multi Threaded program With allegro. Pin
Andrew Brock23-Jan-11 23:54
Andrew Brock23-Jan-11 23:54 
GeneralRe: Multi Threaded program With allegro. Pin
Thilina.madush24-Jan-11 0:02
Thilina.madush24-Jan-11 0:02 
GeneralRe: Multi Threaded program With allegro. Pin
Andrew Brock24-Jan-11 0:07
Andrew Brock24-Jan-11 0:07 
QuestionHow to set a icon to the column of the CListCtrl Pin
yu-jian23-Jan-11 21:06
yu-jian23-Jan-11 21:06 
AnswerRe: How to set a icon to the column of the CListCtrl Pin
ShilpiP23-Jan-11 22:45
ShilpiP23-Jan-11 22:45 
AnswerRe: How to set a icon to the column of the CListCtrl Pin
David Crow24-Jan-11 4:21
David Crow24-Jan-11 4:21 
QuestionMouse move over Tray Icon, the icon disappear. [modified][Solved] Pin
yu-jian23-Jan-11 14:47
yu-jian23-Jan-11 14:47 
AnswerRe: Mouse move over Tray Icon, the icon disappear. Pin
Stephen Hewitt23-Jan-11 19:28
Stephen Hewitt23-Jan-11 19:28 
AnswerRe: Mouse move over Tray Icon, the icon disappear. Pin
Malli_S23-Jan-11 23:05
Malli_S23-Jan-11 23:05 

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.