Re: Basic connection point question

Tech-Archive recommends: Fix windows errors by optimizing your registry




"khalprin" <khalprin@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:DA66A7D1-DFEF-4A18-AFBF-2622006EC69C@xxxxxxxxxxxxxxxx
Using the ATL connection points, when would there be more than one client
connection to receive a 'Fire_...' event callback. If each client requesting
an interface causes the server to substantiate a new instance of the c++
class for the interface, why would there be more than one connection in the
list?



The client may decide to share the instance with other clients. Typically one client will register the instance in the Global Interface Table (GIT) so that other clients can use the same instance.


.



Relevant Pages

  • Re: Using Open, Close , Lock, Unlock, etc. as dll method names
    ... You can create an IDL file with the full interface of your class. ... Now you expose that Interface to the client - not a class itself. ... and another class, let say, Connection, which should have a method Close. ... Internally, you have a class, which you name as CoConnection, and in TLB it ...
    (microsoft.public.vb.general.discussion)
  • Re: What doesnt lend itself to OO?
    ... >>server is a pure data transfer interface. ... essentially exposing the client or service implementation. ... >>paradigms can be abstracted just like any other problem space in an OO ...
    (comp.object)
  • Re: Text terminal rendering design
    ... free to give it any object that satisfies that interface. ... giving it a real facade object if I choose. ... Facade to avoid touching the client. ... completely incompatible with this subsystem interface. ...
    (comp.object)
  • Re: Abstract public member variales?
    ... Entity has no encapsulation and no real methods, but the great thing about it is that its public interface will never have to change during maintenance. ... Assuming there is at most only one Property instance for each property type, then the R1 collection class would own the smarts for finding the right one. ... However, I would point out that the client of the getter is someone who needs to collaborate with a specific Property, not the Entity itself. ... The second line generates a message to the Property for the collaboration. ...
    (comp.object)
  • Re: Text terminal rendering design
    ... Which is exactly what would happen in your case when the interface of the implementation object changes. ... But then you need a new object to own the actual responsibility within the subsystem implementation. ... I can pop in a facade in a completely painless manner without being forced to rename or kludge anything. ... Facade to avoid touching the client. ...
    (comp.object)