Cannot access CChildFrame from separate thread

Posted on 2003-03-10
Medium Priority
Last Modified: 2013-11-20
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?
Question by:MrNoName
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment

Accepted Solution

Priyesh earned 800 total points
ID: 8108227
try using messages to communicate to your mainwindow.

Featured Post

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses
Course of the Month14 days, 9 hours left to enroll

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question