Click here to Skip to main content
15,918,050 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: sockets in vc6 Pin
Eytukan18-May-06 22:02
Eytukan18-May-06 22:02 
GeneralRe: sockets in vc6 Pin
shuchigo_jane18-May-06 22:14
shuchigo_jane18-May-06 22:14 
GeneralRe: sockets in vc6 Pin
Sarath C18-May-06 23:18
Sarath C18-May-06 23:18 
GeneralRe: sockets in vc6 Pin
shuchigo_jane18-May-06 23:25
shuchigo_jane18-May-06 23:25 
QuestionSingleton Class (C++) Pin
Scorpio18-May-06 21:51
Scorpio18-May-06 21:51 
AnswerRe: Singleton Class (C++) Pin
Cedric Moonen18-May-06 21:58
Cedric Moonen18-May-06 21:58 
GeneralRe: Singleton Class (C++) Pin
Stephen Hewitt18-May-06 22:06
Stephen Hewitt18-May-06 22:06 
GeneralRe: Singleton Class (C++) Pin
Cedric Moonen18-May-06 22:13
Cedric Moonen18-May-06 22:13 
Yes, that another way of doing it. Both techniques have their pro and cons. I remember having read an article that was discussing several singleton implementations but I don't remember the link.
Yours is great when it has to be used 'alone' because as you said you don't have to worry about releasing the instance.
But in some cases, this can lead to problems: if you have a singleton that is member of another singleton, then you get into trouble because you have no control over the timings of the destruction of the instances. In such case, you need to control yourself the scope of the instances.


Cédric Moonen
Software developer

Charting control
AnswerRe: Singleton Class (C++) Pin
Maxwell Chen18-May-06 21:59
Maxwell Chen18-May-06 21:59 
GeneralRe: Singleton Class (C++) Pin
Scorpio18-May-06 22:01
Scorpio18-May-06 22:01 
QuestionHow to send SMS in VC++ Pin
MadBoyz18-May-06 21:22
MadBoyz18-May-06 21:22 
AnswerRe: How to send SMS in VC++ Pin
Cedric Moonen18-May-06 21:30
Cedric Moonen18-May-06 21:30 
GeneralRe: How to send SMS in VC++ Pin
MadBoyz18-May-06 21:39
MadBoyz18-May-06 21:39 
AnswerRe: How to send SMS in VC++ Pin
Hamid_RT18-May-06 21:31
Hamid_RT18-May-06 21:31 
AnswerRe: How to send SMS in VC++ Pin
Eytukan18-May-06 21:34
Eytukan18-May-06 21:34 
GeneralRe: How to send SMS in VC++ Pin
Rajesh R Subramanian18-May-06 22:09
professionalRajesh R Subramanian18-May-06 22:09 
AnswerRe: How to send SMS in VC++ Pin
Hamid_RT18-May-06 21:34
Hamid_RT18-May-06 21:34 
AnswerRe: How to send SMS in VC++ Pin
_AnsHUMAN_ 18-May-06 23:00
_AnsHUMAN_ 18-May-06 23:00 
AnswerRe: How to send SMS in VC++ Pin
Laxman Auti18-May-06 23:53
Laxman Auti18-May-06 23:53 
GeneralRe: How to send SMS in VC++ Pin
MadBoyz19-May-06 5:32
MadBoyz19-May-06 5:32 
AnswerRe: How to send SMS in VC++ Pin
David Crow19-May-06 3:29
David Crow19-May-06 3:29 
GeneralRe: How to send SMS in VC++ Pin
MadBoyz19-May-06 5:36
MadBoyz19-May-06 5:36 
QuestionHow to set Version properties of the applications EXE file Pin
zahid_ash18-May-06 20:44
zahid_ash18-May-06 20:44 
AnswerRe: How to set Version properties of the applications EXE file Pin
Laxman Auti18-May-06 20:51
Laxman Auti18-May-06 20:51 
GeneralRe: How to set Version properties of the applications EXE file Pin
zahid_ash18-May-06 20:52
zahid_ash18-May-06 20:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.