Board index » delphi » Com server wants to delete Com clients
Wim Bekker
![]() Delphi Developer |
Sat, 30 Aug 2003 16:13:20 GMT
|
Wim Bekker
![]() Delphi Developer |
Sat, 30 Aug 2003 16:13:20 GMT
Com server wants to delete Com clients
Hi,
I have a Com Server that occasionally checks to see if it clients are Can anyone help me? Wim |
Scott Kellis
![]() Delphi Developer |
Sat, 30 Aug 2003 23:43:35 GMT
Re:Com server wants to delete Com clientsThe function your thinking of CoDisconnectObject. Disconnects all remote process connections being maintained on behalf of all the interface pointers on a specified object. Only the process that actually manages the object should call CoDisconnectObject. Quote"Wim Bekker" <wim@#NOSPAM#divirec.com> wrote in message Quote> Hi, |
Wim Bekke
![]() Delphi Developer |
Mon, 01 Sep 2003 18:32:02 GMT
Re:Com server wants to delete Com clientsAs I am very newbee I have the Impl class but how do I get the IUnknown pointer? Wim Scott Kellish <skell...@siemens-hearing.com> schreef in berichtnieuws Quote> The function your thinking of CoDisconnectObject. Disconnects all |
Wim Bekke
![]() Delphi Developer |
Tue, 02 Sep 2003 16:38:02 GMT
Re:Com server wants to delete Com clientsAs I am very newbee I have the Impl class but how do I get the IUnknown pointer? Wim Scott Kellish <skell...@siemens-hearing.com> schreef in berichtnieuws Quote> The function your thinking of CoDisconnectObject. Disconnects all |
Team
![]() Delphi Developer |
Tue, 02 Sep 2003 17:13:26 GMT
Re:Com server wants to delete Com clients<<Wim Bekker: As I am very newbee I have the Impl class but how do I get the IUnknown pointer? Quoteinterface, IMyIntf = interface(IDispatch) and an object that implements that interface, TMyDispatchObj = class(TAutoObject, IMyDispatchIntf) you can create the object, and then get any other interface var If that doesn't help, perhaps you could give more -- Use Borland servers; TeamB don't see posts via ISPs |
Wim Bekke
![]() Delphi Developer |
Tue, 02 Sep 2003 18:53:08 GMT
Re:Com server wants to delete Com clientsI've created a Tlib (using CPPBuilder). It has a CoClass DvrMessageAO with an interface IDvrMessageAO and disp interface IDvrMessageAOEvents. Builder creates DvrMessageServer_TLB which defines the CoClass and interfaces. It also creates the file DvrMessageAOImpl which defines: class ATL_NO_VTABLE TDvrMessageAOImpl : For creating clients I have imported the type-lib, create a component When a client connects to the server (also remote) there is an Because it is possible that clients get disconnected without informing I've tried CoDisconnectObject(reinterpret_cast<IUnknown*>(the Wim It is a EXE-server . Builder creates some files Quote> <<Wim Bekker: |
1. How to pass application pointer from com server to com client
2. Passing a TComponent from COM-server to COM-client
3. Registering COM servers / creating COM clients
4. Freeing COM-objects in a COM-Client?
5. COM events from a multithreaded COM server
6. COM server started manually or via COM?
7. Is Com-Server Com-controlled ?
8. Microsoft Transaction Server, BCB COM and VC 5 COM