Click here to Skip to main content
12,289,975 members (63,778 online)

C / C++ / MFC

 
AnswerRe: Can i get text color of title bar? Pin
Richard MacCutchan10-Feb-13 21:59
mvpRichard MacCutchan10-Feb-13 21:59 
GeneralRe: Can i get text color of title bar? Pin
VCProgrammer10-Feb-13 22:42
groupVCProgrammer10-Feb-13 22:42 
GeneralRe: Can i get text color of title bar? Pin
Richard MacCutchan10-Feb-13 23:01
mvpRichard MacCutchan10-Feb-13 23:01 
GeneralRe: Can i get text color of title bar? Pin
VCProgrammer10-Feb-13 23:07
groupVCProgrammer10-Feb-13 23:07 
QuestionVisual Studio 2010 optimized code bug Pin
ForNow10-Feb-13 14:55
memberForNow10-Feb-13 14:55 
AnswerRe: Visual Studio 2010 optimized code bug Pin
«_Superman_»10-Feb-13 18:02
member«_Superman_»10-Feb-13 18:02 
GeneralRe: Visual Studio 2010 optimized code bug Pin
ForNow10-Feb-13 19:03
memberForNow10-Feb-13 19:03 
QuestionRe: Visual Studio 2010 optimized code bug Pin
bob1697210-Feb-13 19:32
memberbob1697210-Feb-13 19:32 
AnswerRe: Visual Studio 2010 optimized code bug Pin
ForNow10-Feb-13 19:49
memberForNow10-Feb-13 19:49 
AnswerRe: Visual Studio 2010 optimized code bug Pin
Richard MacCutchan10-Feb-13 21:49
mvpRichard MacCutchan10-Feb-13 21:49 
GeneralRe: Visual Studio 2010 optimized code bug Pin
ForNow11-Feb-13 17:17
memberForNow11-Feb-13 17:17 
GeneralRe: Visual Studio 2010 optimized code bug Pin
Richard MacCutchan11-Feb-13 22:10
mvpRichard MacCutchan11-Feb-13 22:10 
GeneralRe: Visual Studio 2010 optimized code bug Pin
ForNow12-Feb-13 2:25
memberForNow12-Feb-13 2:25 
Question__interface implies the novtable __declspec modifier Pin
bob169729-Feb-13 11:30
memberbob169729-Feb-13 11:30 
I'm just trying to understand the Microsoft specific modifier __interface.

According to the MSDN, "__interface implies the novtable __declspec modifier."
However, when I try to mock up code to try an verify this, Visual Studio 2008 still suggests the vtable pointer is present?

__interface ISample
{
    bool Next();
    bool Prev();
};
 
class CSample : public ISample
{
public:
    bool Next()
    {
        return false;
    }
 
    bool Prev()
    {
        return false;
    }
};

Am I misunderstanding what MSDN is trying to convey or am I just doing something wrong. In a nutshell, just trying to see if it's possible to enforce interface rules without needing the vtable overhead if only deriving from __interface declarations. I understand that this would not be portable code.
AnswerRe: __interface implies the novtable __declspec modifier Pin
H.Brydon9-Feb-13 18:35
memberH.Brydon9-Feb-13 18:35 
GeneralRe: __interface implies the novtable __declspec modifier Pin
bob1697210-Feb-13 5:20
memberbob1697210-Feb-13 5:20 
AnswerRe: __interface implies the novtable __declspec modifier Pin
pasztorpisti9-Feb-13 23:32
memberpasztorpisti9-Feb-13 23:32 
GeneralRe: __interface implies the novtable __declspec modifier Pin
bob1697210-Feb-13 6:03
memberbob1697210-Feb-13 6:03 
GeneralRe: __interface implies the novtable __declspec modifier Pin
pasztorpisti10-Feb-13 10:45
memberpasztorpisti10-Feb-13 10:45 
GeneralRe: __interface implies the novtable __declspec modifier Pin
bob1697210-Feb-13 19:22
memberbob1697210-Feb-13 19:22 
GeneralRe: __interface implies the novtable __declspec modifier Pin
H.Brydon11-Feb-13 15:45
memberH.Brydon11-Feb-13 15:45 
GeneralRe: __interface implies the novtable __declspec modifier Pin
pasztorpisti12-Feb-13 4:53
memberpasztorpisti12-Feb-13 4:53 
QuestionAES Encryption Help Pin
vishalgpt7-Feb-13 23:21
membervishalgpt7-Feb-13 23:21 
AnswerRe: AES Encryption Help Pin
Richard MacCutchan8-Feb-13 0:34
mvpRichard MacCutchan8-Feb-13 0:34 
GeneralRe: AES Encryption Help Pin
vishalgpt8-Feb-13 2:55
membervishalgpt8-Feb-13 2:55 
GeneralRe: AES Encryption Help Pin
Richard MacCutchan8-Feb-13 5:22
mvpRichard MacCutchan8-Feb-13 5:22 
QuestionKernel programming Pin
OmarSH7-Feb-13 22:15
memberOmarSH7-Feb-13 22:15 
AnswerRe: Kernel programming Pin
Richard MacCutchan7-Feb-13 23:08
mvpRichard MacCutchan7-Feb-13 23:08 
GeneralRe: Kernel programming Pin
OmarSH7-Feb-13 23:49
memberOmarSH7-Feb-13 23:49 
GeneralRe: Kernel programming Pin
Richard MacCutchan8-Feb-13 0:32
mvpRichard MacCutchan8-Feb-13 0:32 
GeneralRe: Kernel programming Pin
OmarSH8-Feb-13 2:11
memberOmarSH8-Feb-13 2:11 
GeneralRe: Kernel programming Pin
Richard MacCutchan8-Feb-13 5:15
mvpRichard MacCutchan8-Feb-13 5:15 
AnswerRe: Kernel programming Pin
Erudite_Eric8-Feb-13 0:09
memberErudite_Eric8-Feb-13 0:09 
GeneralRe: Kernel programming Pin
Albert Holguin8-Feb-13 6:01
memberAlbert Holguin8-Feb-13 6:01 
AnswerRe: Kernel programming Pin
Albert Holguin8-Feb-13 6:06
memberAlbert Holguin8-Feb-13 6:06 
QuestionDirectShow Video Playback from memory Pin
sdancer756-Feb-13 3:07
membersdancer756-Feb-13 3:07 
AnswerRe: DirectShow Video Playback from memory Pin
Code-o-mat8-Feb-13 8:35
memberCode-o-mat8-Feb-13 8:35 
GeneralRe: DirectShow Video Playback from memory Pin
sdancer758-Feb-13 21:49
membersdancer758-Feb-13 21:49 
GeneralRe: DirectShow Video Playback from memory Pin
Code-o-mat9-Feb-13 0:19
memberCode-o-mat9-Feb-13 0:19 
GeneralRe: DirectShow Video Playback from memory Pin
sdancer759-Feb-13 5:19
membersdancer759-Feb-13 5:19 
QuestionBitmap Display from Buffer received by TCP socket Pin
toms from newdelhi6-Feb-13 1:21
membertoms from newdelhi6-Feb-13 1:21 
QuestionRe: Bitmap Display from Buffer received by TCP socket Pin
CPallini6-Feb-13 2:20
mvpCPallini6-Feb-13 2:20 
AnswerRe: Bitmap Display from Buffer received by TCP socket Pin
Richard MacCutchan6-Feb-13 3:09
mvpRichard MacCutchan6-Feb-13 3:09 
Questionicon on button not displayed in XP. Pin
VCProgrammer5-Feb-13 21:47
groupVCProgrammer5-Feb-13 21:47 
SuggestionRe: icon on button not displayed in XP. Pin
Richard MacCutchan6-Feb-13 3:11
mvpRichard MacCutchan6-Feb-13 3:11 
QuestionRe: icon on button not displayed in XP. Pin
DavidCrow6-Feb-13 5:58
memberDavidCrow6-Feb-13 5:58 
AnswerRe: icon on button not displayed in XP. Pin
VCProgrammer6-Feb-13 17:36
groupVCProgrammer6-Feb-13 17:36 
SuggestionRe: icon on button not displayed in XP. Pin
DavidCrow7-Feb-13 2:35
memberDavidCrow7-Feb-13 2:35 
GeneralRe: icon on button not displayed in XP. Pin
VCProgrammer7-Feb-13 18:46
groupVCProgrammer7-Feb-13 18:46 
GeneralRe: icon on button not displayed in XP. Pin
Richard MacCutchan7-Feb-13 23:07
mvpRichard MacCutchan7-Feb-13 23:07 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.160518.1 | Last Updated 24 May 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid