Click here to Skip to main content
15,850,214 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Creating Threads using Class Object functions Pin
norish2-Jun-09 3:09
norish2-Jun-09 3:09 
NewsRe: Creating Threads using Class Object functions Pin
norish2-Jun-09 3:12
norish2-Jun-09 3:12 
AnswerRe: Creating Threads using Class Object functions Pin
Stuart Dootson2-Jun-09 3:25
professionalStuart Dootson2-Jun-09 3:25 
GeneralRe: Creating Threads using Class Object functions Pin
jobin0070072-Jun-09 5:27
jobin0070072-Jun-09 5:27 
GeneralRe: Creating Threads using Class Object functions Pin
Stuart Dootson2-Jun-09 6:13
professionalStuart Dootson2-Jun-09 6:13 
GeneralRe: Creating Threads using Class Object functions Pin
jobin0070072-Jun-09 13:17
jobin0070072-Jun-09 13:17 
GeneralRe: Creating Threads using Class Object functions Pin
Stuart Dootson2-Jun-09 13:30
professionalStuart Dootson2-Jun-09 13:30 
GeneralRe: Creating Threads using Class Object functions Pin
jobin0070072-Jun-09 5:33
jobin0070072-Jun-09 5:33 
Would you able to tell me how to adapt my code to the code you wrote earlier?

Class ABC
{
int a;
int b;
void DO()
{

this.a="";
this.b="";
this.capture();
}

void capture()
{

}

};


void main()
{

ABC Object[20];
for(int i=0;i<20;i++)
createthread(Object[i].DO); //So 20 Threads are created here.

}

I am unsure as of how to use your example in my code.
GeneralRe: Creating Threads using Class Object functions Pin
Stuart Dootson2-Jun-09 6:25
professionalStuart Dootson2-Jun-09 6:25 
QuestionIs it "ok" to get array length this way Pin
FocusedWolf1-Jun-09 13:46
FocusedWolf1-Jun-09 13:46 
GeneralRe: Is it "ok" to get array length this way Pin
norish1-Jun-09 14:27
norish1-Jun-09 14:27 
GeneralRe: Is it "ok" to get array length this way Pin
FocusedWolf1-Jun-09 17:07
FocusedWolf1-Jun-09 17:07 
AnswerRe: Is it "ok" to get array length this way Pin
Stuart Dootson1-Jun-09 15:43
professionalStuart Dootson1-Jun-09 15:43 
GeneralRe: Is it "ok" to get array length this way Pin
Chris Losinger1-Jun-09 16:35
professionalChris Losinger1-Jun-09 16:35 
GeneralRe: Is it "ok" to get array length this way Pin
FocusedWolf1-Jun-09 17:15
FocusedWolf1-Jun-09 17:15 
GeneralRe: Is it "ok" to get array length this way Pin
Stuart Dootson1-Jun-09 21:27
professionalStuart Dootson1-Jun-09 21:27 
GeneralRe: Is it "ok" to get array length this way Pin
FocusedWolf2-Jun-09 5:27
FocusedWolf2-Jun-09 5:27 
GeneralRe: Is it "ok" to get array length this way Pin
Stuart Dootson1-Jun-09 21:32
professionalStuart Dootson1-Jun-09 21:32 
QuestionRe: Is it "ok" to get array length this way Pin
David Crow1-Jun-09 18:08
David Crow1-Jun-09 18:08 
AnswerRe: Is it "ok" to get array length this way Pin
FocusedWolf2-Jun-09 5:26
FocusedWolf2-Jun-09 5:26 
AnswerRe: Is it "ok" to get array length this way Pin
gethomast2-Jun-09 3:28
gethomast2-Jun-09 3:28 
QuestionMDI without FileNew message at startup Pin
transoft1-Jun-09 10:09
transoft1-Jun-09 10:09 
AnswerRe: MDI without FileNew message at startup Pin
David Crow1-Jun-09 10:35
David Crow1-Jun-09 10:35 
Questionhelp Pin
ramina sen1-Jun-09 9:33
ramina sen1-Jun-09 9:33 
QuestionRe: help Pin
David Crow1-Jun-09 10:35
David Crow1-Jun-09 10:35 

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.