Click here to Skip to main content
15,895,827 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: why no virtual constructor? Pin
Stefan_Lang16-Jul-12 22:29
Stefan_Lang16-Jul-12 22:29 
GeneralRe: why no virtual constructor? Pin
Mattias Högström17-Jul-12 0:38
Mattias Högström17-Jul-12 0:38 
GeneralRe: why no virtual constructor? Pin
Stefan_Lang17-Jul-12 2:00
Stefan_Lang17-Jul-12 2:00 
GeneralRe: why no virtual constructor? Pin
Mattias Högström17-Jul-12 10:07
Mattias Högström17-Jul-12 10:07 
JokeRe: why no virtual constructor? Pin
Albert Holguin17-Jul-12 12:19
professionalAlbert Holguin17-Jul-12 12:19 
GeneralRe: why no virtual constructor? Pin
jschell20-Jul-12 6:52
jschell20-Jul-12 6:52 
GeneralRe: why no virtual constructor? Pin
Mattias Högström20-Jul-12 7:33
Mattias Högström20-Jul-12 7:33 
GeneralRe: why no virtual constructor? Pin
jschell21-Jul-12 11:33
jschell21-Jul-12 11:33 
Mattias Högström wrote:
It is unsafe or undefined to call a virtual method from the constructor.


It is defined behavior.

Mattias Högström wrote:
Calling them from constructors are of course not possible due to how parents an children are created


Not sure what that means. It not possible because the language definition doesn't allow it. Perhaps your reason is a restatement of why that rule exists.
GeneralRe: why no virtual constructor? Pin
Mattias Högström21-Jul-12 13:54
Mattias Högström21-Jul-12 13:54 
GeneralRe: why no virtual constructor? Pin
Eugen Podsypalnikov16-Jul-12 23:59
Eugen Podsypalnikov16-Jul-12 23:59 
QuestionHow to add app icon in full color? Pin
includeh1014-Jul-12 15:22
includeh1014-Jul-12 15:22 
AnswerRe: How to add app icon in full color? Pin
«_Superman_»14-Jul-12 17:58
professional«_Superman_»14-Jul-12 17:58 
QuestionMFC CListCtrl FindItem is not working Pin
D.Manivelan13-Jul-12 23:45
D.Manivelan13-Jul-12 23:45 
AnswerRe: MFC CListCtrl FindItem is not working Pin
_Flaviu14-Jul-12 0:06
_Flaviu14-Jul-12 0:06 
GeneralRe: MFC CListCtrl FindItem is not working Pin
D.Manivelan14-Jul-12 1:14
D.Manivelan14-Jul-12 1:14 
GeneralRe: MFC CListCtrl FindItem is not working Pin
_Flaviu14-Jul-12 1:20
_Flaviu14-Jul-12 1:20 
GeneralRe: MFC CListCtrl FindItem is not working Pin
Rolf Kristensen14-Jul-12 21:41
Rolf Kristensen14-Jul-12 21:41 
AnswerRe: MFC CListCtrl FindItem is not working Pin
Richard MacCutchan14-Jul-12 0:17
mveRichard MacCutchan14-Jul-12 0:17 
Question'fopen_s' and 'fscanf_s' Pin
mrby12313-Jul-12 10:38
mrby12313-Jul-12 10:38 
AnswerRe: 'fopen_s' and 'fscanf_s' Pin
Wes Aday13-Jul-12 10:45
professionalWes Aday13-Jul-12 10:45 
AnswerRe: 'fopen_s' and 'fscanf_s' Pin
jeron113-Jul-12 10:45
jeron113-Jul-12 10:45 
Questionsrand(time(NULL)); in MSDN 2010 Pin
mrby12313-Jul-12 7:04
mrby12313-Jul-12 7:04 
AnswerRe: srand(time(NULL)); in MSDN 2010 Pin
David Crow13-Jul-12 7:52
David Crow13-Jul-12 7:52 
AnswerRe: srand(time(NULL)); in MSDN 2010 Pin
Albert Holguin13-Jul-12 8:37
professionalAlbert Holguin13-Jul-12 8:37 
QuestionHow to undo drawing images in MFC.? Pin
mbatra3111-Jul-12 22:51
mbatra3111-Jul-12 22:51 

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.