Publishing and using Com Servers in other developing languages as VB, VC++
Hi,
I have created ComServers that I use within Delphi without problems.
But I have problems to use those servers with other developing languages as
Visual C++ and Visual Basic. And we do not know if it's an error in creating
the ComServer by Delphi or in the way the DLL is registered or in the way
Delphi creates the TLB-files.
The ComServers have one special feature. They all use one common interface
and one special interface for each server. The are implemented as dual
interfaces using OLE automation, i.e. our ComServers are classes supporting
two interfaces. The common interface is an inherited interface. Hence to use
the ComServer one always needs two DLLs the CommonServer.DLL (where the
common interface is implemented, but which cannot be instantiated for
itself) and the SpecialServer.DLL (supporting the special interface and one
interface that is inherited from the common interface).
When we tried to use the ComServer within a C++ or VB application it was no
problem to access the methods and properties of the special interface but we
were not able to access the methods and properties of the common interface.
Any help or hint how to use those ComServer or what we are doing wrong is
highly appreciated!
Kind regards
Ulrike Hegger
-------------------------------------
ulrike hegger
development
ifa computer service gmbh
tel: +49 (0)2234 - 4000716
e-mail: h...@ifacs.de
--------------------------------------