Click to See Complete Forum and Search --> : COM


Kanwardeep
April 27th, 1999, 11:52 PM
I have a MDI Application with Use Interfaces. I want to put the User Interfaces in COM components. My mainframe is in the exe acting as a client for these components. I want to make a call to the COM components through my mainframe in the exe and to create a view, but it gives me an assertion failure.
Can anybody help me out?
Thanks...

MoMoPi
April 28th, 1999, 08:25 AM
Your COM is DLL(in-porcess) or EXE(out-of-process) ? You need to marshal (if they are not the same
process). Give more details about your problem.

April 29th, 1999, 10:10 PM
for kanwardeep:

The COM component is an In-Process component. As I wrote in my earlier mail I have the mainframe class in the exe. I want my view from the component to hook onto the Appframework(Mainframe ) of my client.
What happens is. In trying to create the view it goes and fetches the main window handle using the App pointer in the MFC lib calls if the parent window is not defined.
But when I tried to pass the mainwindow pointer to the COM object , then deep inside the MFC calls it does a type checking to see whether this mainwindow is the same as of the same thread as the COM component and it fails.