[omniORB] using omniORB2 from an MFC Windows app, has anyone done this?

wtflanders wtflanders@micron.com
Fri, 11 Sep 1998 17:32:43 -0600


Hi,
I have a newbie question on using omniORB2 from an MFC Document/View app.
  
I have an MFC application that is a CORBA server.  It contains a CORBA 
object I'll call HOST.  When external applications call HOST's operations
can the implementation of that operation safely access my MFC objects? (ie:
invoke operations on it's Document.)  I have gotten this to work if the
HOST operation does not call any operations that cause MFC/CWinApp to
call "AfxAssertValidObject(..)".  If it does my CView's message map is null,
which appears to be caused by CWinApp executing in one thread and my 
HOST object's operation in another?  (I suppose I need a CORBA 101 course.)
Can anyone shed some light on what is happening here?  Or, if you've 
successfully mixed the omniORB2 and MFC how did you architect the app?
My approach is to embed the CORBA objects in my CDocument derived class and
have the CORBA objects manipulate data in the doc.

Thanks,
Bill Flanders
Micron Systems Integration
WTFlanders@Micron.com