Click here to Skip to main content
15,901,001 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to get all printers in the LAN Pin
bios80862-Mar-07 14:40
bios80862-Mar-07 14:40 
QuestionPlease Suggest some free Online Test Pin
Pankaj.Jain1-Mar-07 20:33
professionalPankaj.Jain1-Mar-07 20:33 
AnswerRe: Please Suggest some free Online Test Pin
Hamid_RT1-Mar-07 20:37
Hamid_RT1-Mar-07 20:37 
GeneralRe: Please Suggest some free Online Test Pin
ThatsAlok1-Mar-07 21:25
ThatsAlok1-Mar-07 21:25 
GeneralRe: Please Suggest some free Online Test Pin
Pankaj.Jain1-Mar-07 22:07
professionalPankaj.Jain1-Mar-07 22:07 
AnswerRe: Please Suggest some free Online Test [modified] Pin
BadKarma2-Mar-07 1:24
BadKarma2-Mar-07 1:24 
QuestionRe: Please Suggest some free Online Test Pin
David Crow2-Mar-07 3:13
David Crow2-Mar-07 3:13 
Questionpassing class object to thread Pin
neha.agarwal271-Mar-07 20:11
neha.agarwal271-Mar-07 20:11 
Hello all,
I want to pass class object in my thread.How to do it??
when i m not passing any arguments to my thread then i m calling AfxBeginThread Like this,
pThread = (CMyThread*) AfxBeginThread( RUNTIME_CLASS(CMyThread),
THREAD_PRIORITY_NORMAL,
NULL,
CREATE_SUSPENDED,
NULL);
i have made a class constituting of 2 members CString and int
i want to pass these values in my thread class
i have made a object of this class like this
commo *c;
c = new commo;
then passing its variable values

now i want to pass this object to thread class
when i m passing it to thread class like this
pThread = (CMyThread*) AfxBeginThread( RUNTIME_CLASS(CMyThread),c);
Its giving error
error C2665: 'AfxBeginThread' : none of the 2 overloads can convert parameter 1 from type 'struct CRuntimeClass *'

can anybody help me in this
thanxs in advance





AnswerRe: passing class object to thread Pin
Naveen1-Mar-07 20:20
Naveen1-Mar-07 20:20 
GeneralRe: passing class object to thread Pin
neha.agarwal271-Mar-07 20:25
neha.agarwal271-Mar-07 20:25 
GeneralRe: passing class object to thread Pin
Naveen1-Mar-07 20:32
Naveen1-Mar-07 20:32 
GeneralRe: passing class object to thread Pin
neha.agarwal271-Mar-07 20:41
neha.agarwal271-Mar-07 20:41 
GeneralRe: passing class object to thread Pin
Naveen1-Mar-07 20:43
Naveen1-Mar-07 20:43 
GeneralRe: passing class object to thread Pin
neha.agarwal271-Mar-07 20:49
neha.agarwal271-Mar-07 20:49 
GeneralRe: passing class object to thread Pin
Naveen1-Mar-07 20:53
Naveen1-Mar-07 20:53 
GeneralRe: passing class object to thread Pin
neha.agarwal271-Mar-07 21:08
neha.agarwal271-Mar-07 21:08 
GeneralRe: passing class object to thread Pin
Naveen1-Mar-07 21:17
Naveen1-Mar-07 21:17 
GeneralRe: passing class object to thread Pin
neha.agarwal271-Mar-07 21:22
neha.agarwal271-Mar-07 21:22 
GeneralRe: passing class object to thread Pin
Naveen1-Mar-07 22:19
Naveen1-Mar-07 22:19 
AnswerRe: passing class object to thread Pin
BadKarma1-Mar-07 22:43
BadKarma1-Mar-07 22:43 
QuestionCWebBrowser2 Control Pin
Sonani Prakash1-Mar-07 20:02
Sonani Prakash1-Mar-07 20:02 
AnswerRe: CWebBrowser2 Control Pin
Sameer_Thakur1-Mar-07 21:12
Sameer_Thakur1-Mar-07 21:12 
GeneralRe: CWebBrowser2 Control Pin
Sonani Prakash1-Mar-07 21:59
Sonani Prakash1-Mar-07 21:59 
QuestionProblem while using Windows Registry Pin
harsh_29611-Mar-07 18:53
harsh_29611-Mar-07 18:53 
AnswerRe: Problem while using Windows Registry Pin
Mark Salsbery1-Mar-07 18:58
Mark Salsbery1-Mar-07 18:58 

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.