Click here to Skip to main content
15,507,526 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: AfxBeginThread- Error Pin
Hamid_RT30-May-06 21:50
Hamid_RT30-May-06 21:50 
GeneralRe: AfxBeginThread- Error Pin
ThatsAlok30-May-06 21:28
ThatsAlok30-May-06 21:28 
GeneralRe: AfxBeginThread- Error Pin
_anil_30-May-06 21:53
_anil_30-May-06 21:53 
AnswerRe: AfxBeginThread- Error Pin
Nibu babu thomas30-May-06 20:22
Nibu babu thomas30-May-06 20:22 
GeneralRe: AfxBeginThread- Error Pin
NiceNaidu30-May-06 20:46
NiceNaidu30-May-06 20:46 
GeneralRe: AfxBeginThread- Error Pin
Nibu babu thomas30-May-06 20:49
Nibu babu thomas30-May-06 20:49 
GeneralRe: AfxBeginThread- Error Pin
satsumatable30-May-06 21:13
satsumatable30-May-06 21:13 
GeneralRe: AfxBeginThread- Error Pin
Nibu babu thomas30-May-06 21:22
Nibu babu thomas30-May-06 21:22 
sivaprakashshanmugam wrote:
Since i'm not defining this class inside the Header file i'm not able to access any controls and its values.


Confused | :confused:


sivaprakashshanmugam wrote:
Previously i had as like below

strSocketData.SetWindowText (strResult);
//strSocketData is a control variable.

How can i access it in my "ReceiveMessage" method.


UINT RecieveMessage( LPVOID pParam )
{
   //Disclaimer: It's not at all safe to pass around MFC objects. Instead you can pass around HWND's which is safe.
 
   CYourDlg* pYourDlg = reinterpret_cast< CYourDlg* >( pParam );
   pYourDlg->strSocketData.SetWindowText( pYourDlg->strResult );
}
 
SocketThread = AfxBeginThread(ReceiveMessage,this);
Hope this helps?Unsure | :~


Nibu thomas
A Developer

Programming tips[^]  My site[^]

GeneralRe: AfxBeginThread- Error Pin
satsumatable30-May-06 21:33
satsumatable30-May-06 21:33 
GeneralRe: AfxBeginThread- Error Pin
Nibu babu thomas30-May-06 21:46
Nibu babu thomas30-May-06 21:46 
QuestionProgress bar Pin
KongHL30-May-06 16:20
KongHL30-May-06 16:20 
AnswerRe: Progress bar Pin
led mike30-May-06 18:15
led mike30-May-06 18:15 
GeneralRe: Progress bar Pin
KongHL30-May-06 20:12
KongHL30-May-06 20:12 
GeneralRe: Progress bar Pin
led mike31-May-06 5:36
led mike31-May-06 5:36 
GeneralRe: Progress bar Pin
Anilkumar K V30-May-06 20:40
Anilkumar K V30-May-06 20:40 
GeneralRe: Progress bar Pin
led mike31-May-06 5:43
led mike31-May-06 5:43 
QuestionCan i read + write two files in 1 function? Pin
Immunity1830-May-06 13:40
Immunity1830-May-06 13:40 
AnswerRe: Can i read + write two files in 1 function? Pin
led mike30-May-06 13:43
led mike30-May-06 13:43 
GeneralRe: Can i read + write two files in 1 function? Pin
Jörgen Sigvardsson30-May-06 14:28
Jörgen Sigvardsson30-May-06 14:28 
AnswerRe: Can i read + write two files in 1 function? Pin
Christian Graus30-May-06 15:27
mveChristian Graus30-May-06 15:27 
AnswerRe: Can i read + write two files in 1 function? Pin
Nibu babu thomas30-May-06 18:22
Nibu babu thomas30-May-06 18:22 
AnswerRe: Can i read + write two files in 1 function? Pin
Hamid_RT30-May-06 19:32
Hamid_RT30-May-06 19:32 
AnswerRe: Can i read + write two files in 1 function? Pin
Immunity1831-May-06 2:21
Immunity1831-May-06 2:21 
QuestionGDI+ / Antialiased polyline Pin
Andre xxxxxxx30-May-06 11:41
Andre xxxxxxx30-May-06 11:41 
AnswerRe: GDI+ / Antialiased polyline Pin
PJ Arends30-May-06 13:16
professionalPJ Arends30-May-06 13: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.