Article View: borland.public.cppbuilder.internet.socket
Article #3127Re: sockets????
From: Gary D
Date: Tue, 01 Nov 2005 23:09
Date: Tue, 01 Nov 2005 23:09
75 lines
3543 bytes
3543 bytes
This is the Header file
// TESTEVENTSIMPLIMPL.H : Declaration of the TTestEventsImplImpl
#ifndef TestEventsImplImplH
#define TestEventsImplImplH
#define ATL_APARTMENT_THREADED
#include "TestEventsTypeLib_TLB.h"
/////////////////////////////////////////////////////////////////////////////
// TTestEventsImplImpl Implements ITestEventsImpl, default interface of
TestEventsImpl
// and ITestEventsImplEvents, the default source interface
// ThreadingModel : Apartment
// Dual Interface : TRUE
// Event Support : TRUE
// Default ProgID : Project1.TestEventsImpl
// Description :
/////////////////////////////////////////////////////////////////////////////
class ATL_NO_VTABLE TTestEventsImplImpl :
public CComObjectRootEx<CComSingleThreadModel>,
public CComCoClass<TTestEventsImplImpl, &CLSID_TestEventsImpl>,
public IConnectionPointContainerImpl<TTestEventsImplImpl>,
public TEvents_TestEventsImpl<TTestEventsImplImpl>,
public IDispatchImpl<ITestEventsImpl, &IID_ITestEventsImpl,
&LIBID_TestEventsTypeLib>
{
public:
// InterfaceList keeps a list of active client connections so the server
can
// fire an event(s) in each connection every time
static TThreadList *InterfaceList; // Code added from newsgroup
info
TTestEventsImplImpl(); // Existing Code ( Funtion was
empty )
~TTestEventsImplImpl(); // Code added from newsgroup
info
// Data used when registering Object
//
DECLARE_THREADING_MODEL(otApartment);
DECLARE_PROGID("TestEventsTypeLib.TestEventsImpl");
DECLARE_DESCRIPTION("");
// Function invoked to (un)register object
//
static HRESULT WINAPI UpdateRegistry(BOOL bRegister)
{
TTypedComServerRegistrarT<TTestEventsImplImpl>
regObj(GetObjectCLSID(), GetProgID(), GetDescription());
return regObj.UpdateRegistry(bRegister);
}
BEGIN_COM_MAP(TTestEventsImplImpl)
COM_INTERFACE_ENTRY(ITestEventsImpl)
COM_INTERFACE_ENTRY2(IDispatch, ITestEventsImpl)
COM_INTERFACE_ENTRY_IMPL(IConnectionPointContainer)
END_COM_MAP()
BEGIN_CONNECTION_POINT_MAP(TTestEventsImplImpl)
CONNECTION_POINT_ENTRY(DIID_ITestEventsImplEvents)
END_CONNECTION_POINT_MAP()
// ITestEventsImpl
public:
STDMETHOD(Trigger());
};
#endif //TestEventsImplImplH
Technical Details
Message-ID:
<4367f5ae@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<43599303@newsgroups.borland.com> <43599f5f$1@newsgroups.borland.com> <435bbbf2$1@newsgroups.borland.com> <435bc353$1@newsgroups.borland.com> <435ea916$1@newsgroups.borland.com> <435eb30b@newsgroups.borland.com> <436367ef$1@newsgroups.borland.com> <4363be5e$1@newsgroups.borland.com> <4366d403@newsgroups.borland.com> <43670f39$2@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,b9d755a2fd611a30 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "Gary D" <gcdesroches@nctc.com> From: "Gary D" <gcdesroches@nctc.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <43599303@newsgroups.borland.com> <43599f5f$1@newsgroups.borland.com> <435bbbf2$1@newsgroups.borland.com> <435bc353$1@newsgroups.borland.com> <435ea916$1@newsgroups.borland.com> <435eb30b@newsgroups.borland.com> <436367ef$1@newsgroups.borland.com> <4363be5e$1@newsgroups.borland.com> <4366d403@newsgroups.borland.com> <43670f39$2@newsgroups.borland.com> Subject: Re: sockets???? Date: Tue, 1 Nov 2005 17:09:11 -0600 Lines: 77 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2670 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 66.38.101.139 Message-ID: <4367f5ae@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1130886574 66.38.101.139 (1 Nov 2005 15:09:34 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail