Click here to Skip to main content
15,887,683 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Locating a function address with the debugger Pin
Richard Andrew x6419-Mar-13 4:39
professionalRichard Andrew x6419-Mar-13 4:39 
AnswerRe: Locating a function address with the debugger Pin
Erudite_Eric19-Mar-13 2:37
Erudite_Eric19-Mar-13 2:37 
GeneralRe: Locating a function address with the debugger Pin
Richard Andrew x6419-Mar-13 4:41
professionalRichard Andrew x6419-Mar-13 4:41 
GeneralRe: Locating a function address with the debugger Pin
Erudite_Eric20-Mar-13 3:29
Erudite_Eric20-Mar-13 3:29 
GeneralRe: Locating a function address with the debugger Pin
Stephen Hewitt19-Mar-13 5:17
Stephen Hewitt19-Mar-13 5:17 
GeneralRe: Locating a function address with the debugger Pin
Erudite_Eric20-Mar-13 3:30
Erudite_Eric20-Mar-13 3:30 
QuestionFailed to compile chrome Pin
yu-jian16-Mar-13 6:27
yu-jian16-Mar-13 6:27 
AnswerRe: Failed to compile chrome Pin
Richard MacCutchan16-Mar-13 6:34
mveRichard MacCutchan16-Mar-13 6:34 
QuestionCTreeCtrl, CDockingPane, and mouse events Pin
Rob Bryce15-Mar-13 20:33
Rob Bryce15-Mar-13 20:33 
AnswerRe: CTreeCtrl, CDockingPane, and mouse events Pin
Eugen Podsypalnikov19-Mar-13 0:23
Eugen Podsypalnikov19-Mar-13 0:23 
AnswerRe: CTreeCtrl, CDockingPane, and mouse events Pin
Rob Bryce19-Mar-13 17:08
Rob Bryce19-Mar-13 17:08 
QuestionDrivers to access parallel port in c using windows xp or 7 ?? Pin
Harshmeet Singh15-Mar-13 8:36
Harshmeet Singh15-Mar-13 8:36 
QuestionRe: Drivers to access parallel port in c using windows xp or 7 ?? Pin
David Crow15-Mar-13 9:54
David Crow15-Mar-13 9:54 
AnswerRe: Drivers to access parallel port in c using windows xp or 7 ?? Pin
Richard MacCutchan15-Mar-13 23:08
mveRichard MacCutchan15-Mar-13 23:08 
AnswerRe: Drivers to access parallel port in c using windows xp or 7 ?? Pin
Erudite_Eric17-Mar-13 1:18
Erudite_Eric17-Mar-13 1:18 
AnswerRe: Drivers to access parallel port in c using windows xp or 7 ?? Pin
_Flaviu17-Mar-13 20:49
_Flaviu17-Mar-13 20:49 
QuestionC++ Code to call a Rest Based Web Service API Pin
raghunath sahoo15-Mar-13 7:56
raghunath sahoo15-Mar-13 7:56 
AnswerRe: C++ Code to call a Rest Based Web Service API Pin
Albert Holguin15-Mar-13 8:34
professionalAlbert Holguin15-Mar-13 8:34 
GeneralRe: C++ Code to call a Rest Based Web Service API Pin
raghunath sahoo15-Mar-13 8:55
raghunath sahoo15-Mar-13 8:55 
GeneralRe: C++ Code to call a Rest Based Web Service API Pin
raghunath sahoo15-Mar-13 8:57
raghunath sahoo15-Mar-13 8:57 
AnswerRe: C++ Code to call a Rest Based Web Service API Pin
Albert Holguin15-Mar-13 9:32
professionalAlbert Holguin15-Mar-13 9:32 
QuestionVC++ and Empty Base Class Optimization problem/bug Pin
Kosta Cherry15-Mar-13 4:45
Kosta Cherry15-Mar-13 4:45 
AnswerRe: VC++ and Empty Base Class Optimization problem/bug Pin
Matthew Faithfull15-Mar-13 6:01
Matthew Faithfull15-Mar-13 6:01 
GeneralRe: VC++ and Empty Base Class Optimization problem/bug Pin
Kosta Cherry15-Mar-13 6:23
Kosta Cherry15-Mar-13 6:23 
GeneralRe: VC++ and Empty Base Class Optimization problem/bug Pin
Matthew Faithfull15-Mar-13 6:36
Matthew Faithfull15-Mar-13 6:36 
The example you give would not need an 'extra' pointer because it would only need the one to the external vtable as everything internal can be optimised away. So far only when you have an internal and an external base you have found the size increases. It's likely that even in that case the internal base could be optimised away but it isn't which may be a flaw in the Microsoft compiler or there may be some practical reason why that shouldn't be done. As I mentioned there are quite a number of combinations of single vs multiple inheritance, virtual and non-virtual bases, local and external bases, exported and non exported, complete and incomplete classes at the point of first declaration. Some optimisations such as empty base class removal will be available under some combinations and not others. For a comparison you could try the Clang compiler which is more C++11 compliant than MSVC and being open source has support forums where you can ask exactly why they did it a particular way. Some odd behaviour in this area in MSVC is more about backward compatability of the resulting binaries with older version of the compiler and of Windows than about mistakes in the current version.
"The secret of happiness is freedom, and the secret of freedom, courage."
Thucydides (B.C. 460-400)

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.