redoctober
Programmer
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.
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.