Click here to Skip to main content
15,893,190 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: assertion failure Pin
CPallini7-Jul-11 22:16
mveCPallini7-Jul-11 22:16 
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 
So class _base is a pure virtual class.

Class _child derives from it and implements the functions.

The code creates an instance of _base and uses it.

Question. It seems that when an instance of a pure virtual base class is created, an instance of its child is in fact created. Is this so?

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

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


While I know C++ well, I have never come across this before, and I would never code this way, it looks ugly, is unclear, and makes debugging impossible. (I work mostly in the kernel in C)
==============================

Nothing to say.

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 
GeneralRe: Pure virtual base class question Pin
Erudite_Eric7-Jul-11 22:31
Erudite_Eric7-Jul-11 22:31 

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.