Click here to Skip to main content
16,014,392 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Resources ... Pin
Max Santos28-May-02 14:52
Max Santos28-May-02 14:52 
GeneralRe: Resources ... Pin
Paul M Watt28-May-02 14:59
mentorPaul M Watt28-May-02 14:59 
GeneralRe: Resources ... Pin
Max Santos28-May-02 15:19
Max Santos28-May-02 15:19 
GeneralRe: Resources ... Pin
-Dy28-May-02 22:59
-Dy28-May-02 22:59 
GeneralRe: Resources ... Pin
Alexandru Savescu28-May-02 23:19
Alexandru Savescu28-May-02 23:19 
GeneralPostMessage() Problem in ActiveX Control from Thread Pin
RickGavin28-May-02 14:22
RickGavin28-May-02 14:22 
GeneralRe: PostMessage() Problem in ActiveX Control from Thread Pin
Paul M Watt28-May-02 14:47
mentorPaul M Watt28-May-02 14:47 
GeneralRe: PostMessage() Problem in ActiveX Control from Thread Pin
RickGavin29-May-02 4:03
RickGavin29-May-02 4:03 
I have tried PostThreadMessage with no luck.

I have an activex control, generated with the 'MFC ActiveX ControlWizard', which gives me an app class of type COleControlModule, the program is structerd as such.... The COleControl Creates the Dialog, which intern creates the Thread, which intern creates the Socket. The data from the socket needs to be displayed in the dialog.

COleControlModule (App)
- COleControl (Ctrl)
- - CDialog
- - - CWinThread
- - - - CAsyncSocket

How do I get a message from the CAsyncSocket derived class back to the COleControl or the CDialog? If this was an App and Not a Control, I could use AfxGetApp() or AfxGetMainWnd()->PostMessage(...) to get a handle back to the main thread. However, these reference doesn't seem to be working for me in a Control.

Thanks for any help.
Generalpreprocessor problems Pin
moredip28-May-02 13:57
moredip28-May-02 13:57 
GeneralRe: preprocessor problems Pin
moredip28-May-02 14:00
moredip28-May-02 14:00 
GeneralRe: preprocessor problems Pin
Michael Dunn28-May-02 16:25
sitebuilderMichael Dunn28-May-02 16:25 
GeneralRe: preprocessor problems Pin
Paul M Watt28-May-02 18:17
mentorPaul M Watt28-May-02 18:17 
GeneralRe: preprocessor problems Pin
moredip29-May-02 5:40
moredip29-May-02 5:40 
Generaldialog app with property sheet Pin
BlackDogEngineering28-May-02 13:37
BlackDogEngineering28-May-02 13:37 
GeneralRe: dialog app with property sheet Pin
Marc Richarme28-May-02 13:52
Marc Richarme28-May-02 13:52 
GeneralRe: dialog app with property sheet Pin
BlackDogEngineering28-May-02 15:02
BlackDogEngineering28-May-02 15:02 
GeneralRe: dialog app with property sheet Pin
Ravi Bhavnani28-May-02 15:30
professionalRavi Bhavnani28-May-02 15:30 
GeneralRe: dialog app with property sheet Pin
BlackDogEngineering28-May-02 17:08
BlackDogEngineering28-May-02 17:08 
GeneralRe: dialog app with property sheet Pin
Marc Richarme28-May-02 19:47
Marc Richarme28-May-02 19:47 
GeneralLinux equivalent to FindFirstFile API Pin
Jim Crafton28-May-02 13:25
Jim Crafton28-May-02 13:25 
GeneralRe: Linux equivalent to FindFirstFile API Pin
Rama Krishna Vavilala28-May-02 13:34
Rama Krishna Vavilala28-May-02 13:34 
GeneralRe: Linux equivalent to FindFirstFile API Pin
Jim Crafton28-May-02 17:03
Jim Crafton28-May-02 17:03 
GeneralRe: Linux equivalent to FindFirstFile API Pin
markkuk28-May-02 22:59
markkuk28-May-02 22:59 
GeneralSelected text before running my app Pin
Kemal OZLU28-May-02 12:32
Kemal OZLU28-May-02 12:32 
GeneralRe: Selected text before running my app Pin
Ed Gadziemski30-May-02 12:18
professionalEd Gadziemski30-May-02 12:18 

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.