Link to home
Start Free TrialLog in
Avatar of MrNoName
MrNoName

asked on

Cannot access CChildFrame from separate thread

I've created a standard MDI (app-wizard) project -- not using document/view. I've created a GUI thread from the CChildFrame class. For some reason, I cannot access the status bar on my CChildFrame class from this thread. I also cannot create a new CMDIChildWnd from this thread. I can, however, access all the controls of the CChildView.
I tried to work around this by calling a function from the CChildView class that accesses the statusbar of the CChildFrame. It doesn't work.
Btw, the project compiles...it just crashes at the time the thread tries to access the CChildFrame or tries to create a new CMDIChildWnd.

Anyone know of a solution for this?
ASKER CERTIFIED SOLUTION
Avatar of Priyesh
Priyesh

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial