Click here to Skip to main content
15,886,578 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Visual Studio 2010 optimized code bug Pin
ForNow10-Feb-13 19:49
ForNow10-Feb-13 19:49 
AnswerRe: Visual Studio 2010 optimized code bug Pin
Richard MacCutchan10-Feb-13 21:49
mveRichard MacCutchan10-Feb-13 21:49 
GeneralRe: Visual Studio 2010 optimized code bug Pin
ForNow11-Feb-13 17:17
ForNow11-Feb-13 17:17 
GeneralRe: Visual Studio 2010 optimized code bug Pin
Richard MacCutchan11-Feb-13 22:10
mveRichard MacCutchan11-Feb-13 22:10 
GeneralRe: Visual Studio 2010 optimized code bug Pin
ForNow12-Feb-13 2:25
ForNow12-Feb-13 2:25 
Question__interface implies the novtable __declspec modifier Pin
bob169729-Feb-13 11:30
bob169729-Feb-13 11:30 
AnswerRe: __interface implies the novtable __declspec modifier Pin
H.Brydon9-Feb-13 18:35
professionalH.Brydon9-Feb-13 18:35 
GeneralRe: __interface implies the novtable __declspec modifier Pin
bob1697210-Feb-13 5:20
bob1697210-Feb-13 5:20 
Thanks for responding. I guess my confusion is if __interface hints to the compiler that the base class will never be instantiated, even though __interface supposedly makes the methods pure virtual, I was hoping that the interface rules were being enforced at compile time and the virtualness of the base class declarations would not propagate up to the derived class, unless of course the derived class explicitly declared something virtual. I know that kinda flies in the face of the normal rules for virtual but I was hoping there was a way to get interface rules enforcement without literally applying the virtual rules unless explicit outside of the interface.

I was hoping that CSample, in this case, would be treated at runtime like it did not have a base class and did not have any virtual methods, and thus the compiler would discard the vtable for it as well.

Is the vtable really needed (in this scenario)?
AnswerRe: __interface implies the novtable __declspec modifier Pin
pasztorpisti9-Feb-13 23:32
pasztorpisti9-Feb-13 23:32 
GeneralRe: __interface implies the novtable __declspec modifier Pin
bob1697210-Feb-13 6:03
bob1697210-Feb-13 6:03 
GeneralRe: __interface implies the novtable __declspec modifier Pin
pasztorpisti10-Feb-13 10:45
pasztorpisti10-Feb-13 10:45 
GeneralRe: __interface implies the novtable __declspec modifier Pin
bob1697210-Feb-13 19:22
bob1697210-Feb-13 19:22 
GeneralRe: __interface implies the novtable __declspec modifier Pin
H.Brydon11-Feb-13 15:45
professionalH.Brydon11-Feb-13 15:45 
GeneralRe: __interface implies the novtable __declspec modifier Pin
pasztorpisti12-Feb-13 4:53
pasztorpisti12-Feb-13 4:53 
QuestionAES Encryption Help Pin
vishalgpt7-Feb-13 23:21
vishalgpt7-Feb-13 23:21 
AnswerRe: AES Encryption Help Pin
Richard MacCutchan8-Feb-13 0:34
mveRichard MacCutchan8-Feb-13 0:34 
GeneralRe: AES Encryption Help Pin
vishalgpt8-Feb-13 2:55
vishalgpt8-Feb-13 2:55 
GeneralRe: AES Encryption Help Pin
Richard MacCutchan8-Feb-13 5:22
mveRichard MacCutchan8-Feb-13 5:22 
QuestionKernel programming Pin
OmarSH7-Feb-13 22:15
OmarSH7-Feb-13 22:15 
AnswerRe: Kernel programming Pin
Richard MacCutchan7-Feb-13 23:08
mveRichard MacCutchan7-Feb-13 23:08 
GeneralRe: Kernel programming Pin
OmarSH7-Feb-13 23:49
OmarSH7-Feb-13 23:49 
GeneralRe: Kernel programming Pin
Richard MacCutchan8-Feb-13 0:32
mveRichard MacCutchan8-Feb-13 0:32 
GeneralRe: Kernel programming Pin
OmarSH8-Feb-13 2:11
OmarSH8-Feb-13 2:11 
GeneralRe: Kernel programming Pin
Richard MacCutchan8-Feb-13 5:15
mveRichard MacCutchan8-Feb-13 5:15 
AnswerRe: Kernel programming Pin
Erudite_Eric8-Feb-13 0:09
Erudite_Eric8-Feb-13 0:09 

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.