Click here to Skip to main content
15,920,687 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: assertion failure Pin
Albert Holguin8-Jul-11 3:41
professionalAlbert Holguin8-Jul-11 3:41 
AnswerRe: assertion failure Pin
Stefan_Lang8-Jul-11 0:19
Stefan_Lang8-Jul-11 0:19 
GeneralRe: assertion failure and "user break point called from code at 0x7c90120e" Pin
mrby1238-Jul-11 7:17
mrby1238-Jul-11 7:17 
GeneralRe: assertion failure and "user break point called from code at 0x7c90120e" Pin
Stefan_Lang10-Jul-11 22:33
Stefan_Lang10-Jul-11 22:33 
QuestionCan I create another CMutex object when a named CMutex object being locked? Pin
Jun Du7-Jul-11 9:29
Jun Du7-Jul-11 9:29 
AnswerRe: Can I create another CMutex object when a named CMutex object being locked? Pin
CPallini7-Jul-11 10:36
mveCPallini7-Jul-11 10:36 
GeneralRe: Can I create another CMutex object when a named CMutex object being locked? Pin
Jun Du7-Jul-11 13:09
Jun Du7-Jul-11 13:09 
AnswerRe: Can I create another CMutex object when a named CMutex object being locked? Pin
Albert Holguin7-Jul-11 13:48
professionalAlbert Holguin7-Jul-11 13:48 
GeneralRe: Can I create another CMutex object when a named CMutex object being locked? Pin
CPallini7-Jul-11 21:26
mveCPallini7-Jul-11 21:26 
GeneralRe: Can I create another CMutex object when a named CMutex object being locked? Pin
ThatsAlok7-Jul-11 21:33
ThatsAlok7-Jul-11 21:33 
QuestionCComboBox in a Modeless Dialog Pin
softwaremonkey7-Jul-11 8:08
softwaremonkey7-Jul-11 8:08 
QuestionRe: CComboBox in a Modeless Dialog Pin
Maximilien7-Jul-11 8:20
Maximilien7-Jul-11 8:20 
AnswerRe: CComboBox in a Modeless Dialog Pin
Richard MacCutchan7-Jul-11 9:22
mveRichard MacCutchan7-Jul-11 9:22 
GeneralRe: CComboBox in a Modeless Dialog Pin
softwaremonkey7-Jul-11 10:59
softwaremonkey7-Jul-11 10:59 
AnswerRe: CComboBox in a Modeless Dialog Pin
Albert Holguin7-Jul-11 11:00
professionalAlbert Holguin7-Jul-11 11:00 
QuestionPure virtual base class question Pin
Erudite_Eric6-Jul-11 22:56
Erudite_Eric6-Jul-11 22:56 
AnswerRe: Pure virtual base class question Pin
వేంకటనారాయణ(venkatmakam)6-Jul-11 23:23
వేంకటనారాయణ(venkatmakam)6-Jul-11 23:23 
GeneralRe: Pure virtual base class question Pin
Erudite_Eric7-Jul-11 0:31
Erudite_Eric7-Jul-11 0:31 
GeneralRe: Pure virtual base class question Pin
Richard MacCutchan7-Jul-11 1:36
mveRichard MacCutchan7-Jul-11 1:36 
GeneralRe: Pure virtual base class question Pin
Erudite_Eric7-Jul-11 22:28
Erudite_Eric7-Jul-11 22:28 
GeneralRe: Pure virtual base class question Pin
Richard MacCutchan7-Jul-11 23:02
mveRichard MacCutchan7-Jul-11 23:02 
GeneralRe: Pure virtual base class question Pin
Niklas L7-Jul-11 8:54
Niklas L7-Jul-11 8:54 
AnswerRe: Pure virtual base class question Pin
CPallini7-Jul-11 2:52
mveCPallini7-Jul-11 2:52 
Eric__V wrote:
It seems that when an instance of a pure virtual base class is created, an instance of its child is in fact created.

When an instance of the derived class is created then you have also an instance of the base class (because 'derived' is 'base'): you cannot instantiate an abstract class.


Eric__V wrote:
An observation. VS finds it impossible to debug step into any functions of the _child instance.

Visual Studio debugger should be able to do that (the debugger is one of the amazing features of Visual Studio, in my opinion).


Eric__V wrote:
Further question. What if you have two descendents from _base. How does the compiler know which one to instantiate?

Choosing the appropriate derived class to instantiate (to get base class functionality) is up to you.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

GeneralRe: Pure virtual base class question Pin
Erudite_Eric7-Jul-11 22:31
Erudite_Eric7-Jul-11 22:31 
QuestionRe: Pure virtual base class question Pin
Maximilien7-Jul-11 3:10
Maximilien7-Jul-11 3:10 

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.