Click here to Skip to main content
15,901,373 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: render a richedit control into a bit Pin
Adam Roderick J17-Jan-10 19:16
Adam Roderick J17-Jan-10 19:16 
GeneralRe: render a richedit control into a bit Pin
mhorowit17-Jan-10 20:14
mhorowit17-Jan-10 20:14 
GeneralRe: render a richedit control into a bit Pin
Rozis18-Jan-10 12:19
Rozis18-Jan-10 12:19 
GeneralRe: render a richedit control into a bit Pin
mhorowit18-Jan-10 13:15
mhorowit18-Jan-10 13:15 
GeneralRe: render a richedit control into a bit Pin
Rozis19-Jan-10 2:21
Rozis19-Jan-10 2:21 
QuestionHow to overlay an image on a printout Pin
mhorowit17-Jan-10 17:44
mhorowit17-Jan-10 17:44 
QuestionCopy Constructor in Singletonclass. Pin
Cpp_Com17-Jan-10 17:39
Cpp_Com17-Jan-10 17:39 
AnswerRe: Copy Constructor in Singletonclass. Pin
«_Superman_»17-Jan-10 17:57
professional«_Superman_»17-Jan-10 17:57 
A singleton class usually also controls its creation.
This is normally done using a static method so that clients can call the static method to get hold of the one and only object instance of the class.

To prevent clients from directly creating objects of the class, we make the constructors private.

When the default constructor is private, clients will not be able to create an instance of the class as follows -
CMySingletonClass Obj;    // Error since default constructor is private.


And when the copy constructor is private clients cannot instantiate the class as follows -
CMySingletonClass AnotherObj(Obj);    // Error since copy constructor is private.


«_Superman
I love work. It gives me something to do between weekends.

Microsoft MVP (Visual C++)

GeneralRe: Copy Constructor in Singletonclass. Pin
Cpp_Com17-Jan-10 18:15
Cpp_Com17-Jan-10 18:15 
GeneralRe: Copy Constructor in Singletonclass. Pin
«_Superman_»17-Jan-10 18:20
professional«_Superman_»17-Jan-10 18:20 
AnswerRe: Copy Constructor in Singletonclass. Pin
Avi Berger17-Jan-10 18:12
Avi Berger17-Jan-10 18:12 
QuestionSimple input and output program that quits to soon. I cant find the problem, please take a look. Pin
rbwest8617-Jan-10 9:50
rbwest8617-Jan-10 9:50 
AnswerRe: Simple input and output program that quits to soon. I cant find the problem, please take a look. Pin
Garth J Lancaster17-Jan-10 10:17
professionalGarth J Lancaster17-Jan-10 10:17 
GeneralRe: Simple input and output program that quits to soon. I cant find the problem, please take a look. Pin
rbwest8617-Jan-10 10:25
rbwest8617-Jan-10 10:25 
GeneralRe: Simple input and output program that quits to soon. I cant find the problem, please take a look. Pin
Garth J Lancaster17-Jan-10 10:31
professionalGarth J Lancaster17-Jan-10 10:31 
GeneralRe: Simple input and output program that quits to soon. I cant find the problem, please take a look. Pin
Bram van Kampen17-Jan-10 10:31
Bram van Kampen17-Jan-10 10:31 
GeneralRe: Simple input and output program that quits to soon. I cant find the problem, please take a look. Pin
Garth J Lancaster17-Jan-10 10:38
professionalGarth J Lancaster17-Jan-10 10:38 
GeneralRe: Simple input and output program that quits to soon. I cant find the problem, please take a look. Pin
Bram van Kampen17-Jan-10 14:27
Bram van Kampen17-Jan-10 14:27 
GeneralRe: Simple input and output program that quits to soon. I cant find the problem, please take a look. Pin
Garth J Lancaster17-Jan-10 14:29
professionalGarth J Lancaster17-Jan-10 14:29 
GeneralRe: Simple input and output program that quits to soon. I cant find the problem, please take a look. Pin
Bram van Kampen17-Jan-10 14:45
Bram van Kampen17-Jan-10 14:45 
GeneralRe: Simple input and output program that quits to soon. I cant find the problem, please take a look. Pin
Luc Pattyn17-Jan-10 14:49
sitebuilderLuc Pattyn17-Jan-10 14:49 
GeneralRe: Simple input and output program that quits to soon. I cant find the problem, please take a look. Pin
Bram van Kampen17-Jan-10 15:04
Bram van Kampen17-Jan-10 15:04 
GeneralRe: Simple input and output program that quits to soon. I cant find the problem, please take a look. Pin
Luc Pattyn17-Jan-10 15:11
sitebuilderLuc Pattyn17-Jan-10 15:11 
AnswerRe: Simple input and output program that quits to soon. I cant find the problem, please take a look. Pin
Avi Berger17-Jan-10 10:30
Avi Berger17-Jan-10 10:30 
GeneralRe: Simple input and output program that quits to soon. I cant find the problem, please take a look. Pin
rbwest8617-Jan-10 11:03
rbwest8617-Jan-10 11:03 

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.