Click here to Skip to main content
11,433,170 members (62,338 online)

C / C++ / MFC

 
AnswerRe: Can i get text color of title bar? Pin
Richard MacCutchan10-Feb-13 22:59
mvpRichard MacCutchan10-Feb-13 22:59 
GeneralRe: Can i get text color of title bar? Pin
VCProgrammer10-Feb-13 23:42
groupVCProgrammer10-Feb-13 23:42 
GeneralRe: Can i get text color of title bar? Pin
Richard MacCutchan11-Feb-13 0:01
mvpRichard MacCutchan11-Feb-13 0:01 
GeneralRe: Can i get text color of title bar? [modified] Pin
VCProgrammer11-Feb-13 0:07
groupVCProgrammer11-Feb-13 0:07 
QuestionVisual Studio 2010 optimized code bug Pin
ForNow10-Feb-13 15:55
memberForNow10-Feb-13 15:55 
AnswerRe: Visual Studio 2010 optimized code bug Pin
«_Superman_»10-Feb-13 19:02
member«_Superman_»10-Feb-13 19:02 
GeneralRe: Visual Studio 2010 optimized code bug Pin
ForNow10-Feb-13 20:03
memberForNow10-Feb-13 20:03 
QuestionRe: Visual Studio 2010 optimized code bug Pin
bob1697210-Feb-13 20:32
memberbob1697210-Feb-13 20:32 
AnswerRe: Visual Studio 2010 optimized code bug Pin
ForNow10-Feb-13 20:49
memberForNow10-Feb-13 20:49 
AnswerRe: Visual Studio 2010 optimized code bug Pin
Richard MacCutchan10-Feb-13 22:49
mvpRichard MacCutchan10-Feb-13 22:49 
GeneralRe: Visual Studio 2010 optimized code bug Pin
ForNow11-Feb-13 18:17
memberForNow11-Feb-13 18:17 
GeneralRe: Visual Studio 2010 optimized code bug Pin
Richard MacCutchan11-Feb-13 23:10
mvpRichard MacCutchan11-Feb-13 23:10 
GeneralRe: Visual Studio 2010 optimized code bug Pin
ForNow12-Feb-13 3:25
memberForNow12-Feb-13 3:25 
Question__interface implies the novtable __declspec modifier Pin
bob169729-Feb-13 12:30
memberbob169729-Feb-13 12: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 19:35
memberH.Brydon9-Feb-13 19:35 
GeneralRe: __interface implies the novtable __declspec modifier Pin
bob1697210-Feb-13 6:20
memberbob1697210-Feb-13 6:20 
AnswerRe: __interface implies the novtable __declspec modifier Pin
pasztorpisti10-Feb-13 0:32
memberpasztorpisti10-Feb-13 0:32 
GeneralRe: __interface implies the novtable __declspec modifier Pin
bob1697210-Feb-13 7:03
memberbob1697210-Feb-13 7:03 
GeneralRe: __interface implies the novtable __declspec modifier Pin
pasztorpisti10-Feb-13 11:45
memberpasztorpisti10-Feb-13 11:45 
GeneralRe: __interface implies the novtable __declspec modifier Pin
bob1697210-Feb-13 20:22
memberbob1697210-Feb-13 20:22 
GeneralRe: __interface implies the novtable __declspec modifier Pin
H.Brydon11-Feb-13 16:45
memberH.Brydon11-Feb-13 16:45 
GeneralRe: __interface implies the novtable __declspec modifier Pin
pasztorpisti12-Feb-13 5:53
memberpasztorpisti12-Feb-13 5:53 
QuestionAES Encryption Help Pin
vishalgpt8-Feb-13 0:21
membervishalgpt8-Feb-13 0:21 
AnswerRe: AES Encryption Help Pin
Richard MacCutchan8-Feb-13 1:34
mvpRichard MacCutchan8-Feb-13 1:34 
GeneralRe: AES Encryption Help Pin
vishalgpt8-Feb-13 3:55
membervishalgpt8-Feb-13 3:55 
GeneralRe: AES Encryption Help Pin
Richard MacCutchan8-Feb-13 6:22
mvpRichard MacCutchan8-Feb-13 6:22 
QuestionKernel programming Pin
OmarSH7-Feb-13 23:15
memberOmarSH7-Feb-13 23:15 
AnswerRe: Kernel programming Pin
Richard MacCutchan8-Feb-13 0:08
mvpRichard MacCutchan8-Feb-13 0:08 
GeneralRe: Kernel programming Pin
OmarSH8-Feb-13 0:49
memberOmarSH8-Feb-13 0:49 
GeneralRe: Kernel programming Pin
Richard MacCutchan8-Feb-13 1:32
mvpRichard MacCutchan8-Feb-13 1:32 
GeneralRe: Kernel programming Pin
OmarSH8-Feb-13 3:11
memberOmarSH8-Feb-13 3:11 
GeneralRe: Kernel programming Pin
Richard MacCutchan8-Feb-13 6:15
mvpRichard MacCutchan8-Feb-13 6:15 
AnswerRe: Kernel programming [modified] Pin
Erudite_Eric8-Feb-13 1:09
memberErudite_Eric8-Feb-13 1:09 
GeneralRe: Kernel programming Pin
Albert Holguin8-Feb-13 7:01
memberAlbert Holguin8-Feb-13 7:01 
AnswerRe: Kernel programming Pin
Albert Holguin8-Feb-13 7:06
memberAlbert Holguin8-Feb-13 7:06 
QuestionDirectShow Video Playback from memory Pin
sdancer756-Feb-13 4:07
membersdancer756-Feb-13 4:07 
AnswerRe: DirectShow Video Playback from memory Pin
Code-o-mat8-Feb-13 9:35
memberCode-o-mat8-Feb-13 9:35 
GeneralRe: DirectShow Video Playback from memory Pin
sdancer758-Feb-13 22:49
membersdancer758-Feb-13 22:49 
GeneralRe: DirectShow Video Playback from memory Pin
Code-o-mat9-Feb-13 1:19
memberCode-o-mat9-Feb-13 1:19 
GeneralRe: DirectShow Video Playback from memory Pin
sdancer759-Feb-13 6:19
membersdancer759-Feb-13 6:19 
QuestionBitmap Display from Buffer received by TCP socket Pin
toms from newdelhi6-Feb-13 2:21
membertoms from newdelhi6-Feb-13 2:21 
QuestionRe: Bitmap Display from Buffer received by TCP socket Pin
CPallini6-Feb-13 3:20
mvpCPallini6-Feb-13 3:20 
AnswerRe: Bitmap Display from Buffer received by TCP socket Pin
Richard MacCutchan6-Feb-13 4:09
mvpRichard MacCutchan6-Feb-13 4:09 
Questionicon on button not displayed in XP. Pin
VCProgrammer5-Feb-13 22:47
groupVCProgrammer5-Feb-13 22:47 
SuggestionRe: icon on button not displayed in XP. Pin
Richard MacCutchan6-Feb-13 4:11
mvpRichard MacCutchan6-Feb-13 4:11 
QuestionRe: icon on button not displayed in XP. Pin
DavidCrow6-Feb-13 6:58
memberDavidCrow6-Feb-13 6:58 
AnswerRe: icon on button not displayed in XP. Pin
VCProgrammer6-Feb-13 18:36
groupVCProgrammer6-Feb-13 18:36 
SuggestionRe: icon on button not displayed in XP. Pin
DavidCrow7-Feb-13 3:35
memberDavidCrow7-Feb-13 3:35 
GeneralRe: icon on button not displayed in XP. [modified] Pin
VCProgrammer7-Feb-13 19:46
groupVCProgrammer7-Feb-13 19:46 
GeneralRe: icon on button not displayed in XP. Pin
Richard MacCutchan8-Feb-13 0:07
mvpRichard MacCutchan8-Feb-13 0:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    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
Web03 | 2.8.150428.2 | Last Updated 5 May 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid