Click here to Skip to main content
15,902,189 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionAsk for help: about reinterpret_cast Pin
chenxiujie18-Nov-05 14:52
chenxiujie18-Nov-05 14:52 
AnswerRe: Ask for help: about reinterpret_cast Pin
John R. Shaw18-Nov-05 18:33
John R. Shaw18-Nov-05 18:33 
QuestionAsk for help: about singleton class Pin
chenxiujie18-Nov-05 14:50
chenxiujie18-Nov-05 14:50 
AnswerRe: Ask for help: about singleton class Pin
toxcct19-Nov-05 1:14
toxcct19-Nov-05 1:14 
GeneralRe: Ask for help: about singleton class Pin
Bob Stanneveld19-Nov-05 7:12
Bob Stanneveld19-Nov-05 7:12 
AnswerRe: Ask for help: about singleton class Pin
Bob Stanneveld19-Nov-05 7:09
Bob Stanneveld19-Nov-05 7:09 
GeneralRe: Ask for help: about singleton class Pin
chenxiujie19-Nov-05 14:44
chenxiujie19-Nov-05 14:44 
GeneralRe: Ask for help: about singleton class Pin
Bob Stanneveld20-Nov-05 19:11
Bob Stanneveld20-Nov-05 19:11 
My example was not the general case, it's how singletons are implemented! You just need to copy pase that mechanism into your class's code that you want to make a singleton. Since there's no such thing as virtual constructors, you can't derive from the singleton...

Behind every great black man...
            ... is the police. - Conspiracy brother


Blog[^]
Questionrun a console app from MFC or Windows Forms Pin
smargada18-Nov-05 14:46
smargada18-Nov-05 14:46 
AnswerRe: run a console app from MFC or Windows Forms Pin
Gary R. Wheeler20-Nov-05 6:58
Gary R. Wheeler20-Nov-05 6:58 
QuestionMenu Items won't come up gray Pin
BuckBrown18-Nov-05 7:42
BuckBrown18-Nov-05 7:42 
AnswerRe: Menu Items won't come up gray Pin
Maximilien18-Nov-05 7:54
Maximilien18-Nov-05 7:54 
GeneralRe: Menu Items won't come up gray Pin
BuckBrown18-Nov-05 10:24
BuckBrown18-Nov-05 10:24 
QuestionReceiving Msgs from Chat Client Pin
legendaryhwk18-Nov-05 5:40
legendaryhwk18-Nov-05 5:40 
Questionhow can we dial server database from client application Pin
sheerprogrammer18-Nov-05 5:19
sheerprogrammer18-Nov-05 5:19 
QuestionDouble winmains,..kind of... Pin
Karl Josefsson18-Nov-05 5:07
Karl Josefsson18-Nov-05 5:07 
QuestionHow can I set property in edit box to accept only Decimal number Pin
Loc Milkyway18-Nov-05 5:02
Loc Milkyway18-Nov-05 5:02 
AnswerRe: How can I set property in edit box to accept only Decimal number Pin
legendaryhwk18-Nov-05 6:18
legendaryhwk18-Nov-05 6:18 
GeneralRe: How can I set property in edit box to accept only Decimal number Pin
Loc Milkyway18-Nov-05 7:43
Loc Milkyway18-Nov-05 7:43 
AnswerRe: How can I set property in edit box to accept only Decimal number Pin
toxcct18-Nov-05 7:05
toxcct18-Nov-05 7:05 
GeneralRe: How can I set property in edit box to accept only Decimal number Pin
Loc Milkyway18-Nov-05 9:01
Loc Milkyway18-Nov-05 9:01 
GeneralRe: How can I set property in edit box to accept only Decimal number Pin
toxcct18-Nov-05 23:06
toxcct18-Nov-05 23:06 
AnswerRe: How can I set property in edit box to accept only Decimal number Pin
Rick York19-Nov-05 7:49
mveRick York19-Nov-05 7:49 
Question_AFX_MAIL_STATE with dynamicly linked MFC dll Pin
lynchspawn18-Nov-05 3:36
lynchspawn18-Nov-05 3:36 
QuestionMigrating to managed C++ Pin
Jim Crafton18-Nov-05 3:32
Jim Crafton18-Nov-05 3:32 

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.