AfxGetApp anomaly
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
Hi I have a method namely CAsyncSocket::OnSend and OnConnect that initially when I start my conversation get called in the context of the main thread In the notification I do a Detach and PostThreadMessage to a CWinThread which does an attach of the socket Now the notification routine return the same value for AfxGetApp and AfxGetThread when clearly the notification is received in the context of a UI CWinThread worker thread