Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tread Problem

Status
Not open for further replies.

redoctober

Programmer
Oct 25, 2000
37
CA
Hi there,
I'm having a problem with the thread here. Actually two of them.
1) I derived my class from CWinThread and i instantiate it in the Doc class constructor. MyThread class has Socket variable and two archives. I initialize them when i connect to server... When server sends a message to my program CSocket in the thread activates OnRecieve function which in turn calls some function in MyThread class. Now, inside this function i cannot access any of the member variables of MyThread class, debug says it cannot reach them.
Any idea why that is?

2)I creat a menu item and i want the event handler for it to be a function of MyThread class. ClassWizzard lets me do that but when i run the program these items are grayed out.
Any way around it?

Any help is greatly appreciated,
Thanks in advance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top