// Hope I am in the right group! I'm using BC++'s ObjectWindows (version 3.1),
// trying to get some date processed in a window object. However, when invoking
// the window object, the calling program gives up the control to the window
// object, and keeps executing the next statement. The source code may look
// like the following:

class MyWindow : public TWindow
{
	...
};

void MyCallingProg(...)  // Could the calling program be a C function?
{	...
	MyWindow *MyWinObj;
	MyWinObj = new MyWindow(...);
	GetApplication()->MakeWindow(MyWinObj);
	MyWinObj->Show(SW_SHOWNORMAL);