Re: Any relation between COM component and Singleton class???

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



You'd benefit the most from a book:

"Design Patterns" by Erich Gamma et al, Addison Wesley

Singleton is one of the creational patterns.

--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@xxxxxxxx
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================

"Dur" <Dur@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:C9ED32DB-54C8-4D8A-BFDB-6A52901580F9@xxxxxxxxxxxxxxxx
> Hi,
>
> What is the purpose of singleton class?
>
> --
> Dur.


.



Relevant Pages

  • Re: ATL Server Class Method Implementation question
    ... Typically your application class is a singleton of some sort. ... In MFC that is a class derived from CWinApp. ... > need to inherit something off of these ATL classes, ... >> Microsoft MVP, MCSD ...
    (microsoft.public.win32.programmer.ole)
  • Re: Singleton --- almost
    ... >>design patterns to apply, instead of trying to judge which design patterns are ... The structure of the Singleton ... If the service object is not a singleton, ... we could create a singleton renderer object and assign it to a column, ...
    (comp.lang.java.programmer)
  • Re: Singleton --- almost
    ... >>design patterns to apply, instead of trying to judge which design patterns are ... The structure of the Singleton ... It may be useful to have a registry of particular objects used by ... objects using the class to adopt an effective usage strategy. ...
    (comp.lang.java.programmer)
  • Re: The Singleton Pattern in PHP 5
    ... >> To add to my growing library of Design Patterns in PHP 5 I have ... >> written what I think is a good example of the Singleton Pattern. ... >You have a class (BookSingleton) with a public constructor, ... >To solve this problem, you need to make the constructor private, and the ...
    (comp.lang.php)
  • Re: Observer Design Pattern
    ... Design Patterns are not the kind of thing that you can turn into a reusable coding library. ... Observer is one of the exceptions to this rule; but it's only a partial exception for the reasons that you have already pointed out in your post. ... require 'singleton' ...
    (comp.object)