Problems trying to build a COM Server

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Problems trying to build a COM Server

DiegoC
Hi,
I have built a COM server with DolphinXP 5.4.1, everything works fine
until I need to show any window. I have a small interface of only 3
methods, and I'am sure that works fine, but if I try something like "Shell
show" in the implementation it doesn't works. It looks like a COM problem,
something I'am missing. Any help?

Many thanks,
Diego


Reply | Threaded
Open this post in threaded view
|

Re: Problems trying to build a COM Server

Chris Uppal-3
DiegoC wrote:

> I have built a COM server with DolphinXP 5.4.1, everything works fine
> until I need to show any window. I have a small interface of only 3
> methods, and I'am sure that works fine, but if I try something like "Shell
> show" in the implementation it doesn't works. It looks like a COM problem,
> something I'am missing. Any help?

There was a conversation on this subject some time ago.  If you can find the
thread in the archives with the title "Problem loading deployed in-process app"
then that should reveal all.  As far as I can tell Google has managed to loose
that thread[*], but it is in Ian's archive.

([*] yet another of the little fuck-ups which are becoming so routine from
Google)

The central post was from Blair, which I'll quote below.

    -- chris

=== quote from the 2002-08-08 message from Blair ===

When deploying as a DLL the default SessionManager is AXDllSessionManager,
which is not a subclass of GUISessionManager, and does not contain the
necessary glue to initialize the windowing system. Hence when you try to
open a window in your DLL it fails. The easiest way to achieve what you are
trying to do is probably to add a custom subclass of GUISessionManager which
selectively overrides SessionManager messages in the same way that
AXDllSessionManager does, with the obvious exception of #startUI which
should use the GUISessionManager implementation.

==========


Reply | Threaded
Open this post in threaded view
|

Re: Problems trying to build a COM Server

DiegoC
Thank you Chris!, I found Blair's message, I didn't find the class that fix
the problem but there was enough information to do it. Everything works
fine now. May be it is something it could be added (in 1 minute) in D6.


Diego Coronel


Reply | Threaded
Open this post in threaded view
|

Re: Problems trying to build a COM Server

Esteban A. Maringolo
Indeed, it is included (and refactored) in Dx6, named
AxDllGUISessionManager, as in the added class for D5.

Regards,

--
Esteban