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

C / C++ / MFC

 
GeneralRe: How to reduce exe size? Pin
includeh1027-Sep-09 3:19
includeh1027-Sep-09 3:19 
GeneralRe: How to reduce exe size? Pin
harold aptroot27-Sep-09 4:20
harold aptroot27-Sep-09 4:20 
GeneralRe: How to reduce exe size? Pin
Iain Clarke, Warrior Programmer27-Sep-09 10:40
Iain Clarke, Warrior Programmer27-Sep-09 10:40 
AnswerRe: How to reduce exe size? Pin
Luc Pattyn27-Sep-09 12:20
sitebuilderLuc Pattyn27-Sep-09 12:20 
AnswerRe: How to reduce exe size? Pin
Joe Woodbury27-Sep-09 17:00
professionalJoe Woodbury27-Sep-09 17:00 
AnswerRe: How to reduce exe size? Pin
CPallini27-Sep-09 23:34
mveCPallini27-Sep-09 23:34 
GeneralRe: How to reduce exe size? Pin
includeh1028-Sep-09 5:02
includeh1028-Sep-09 5:02 
QuestionAn unexpected output Pin
carter200027-Sep-09 0:34
carter200027-Sep-09 0:34 
#include <iostream>

using namespace std;

class CTestA
{
public:
virtual void FuncA()
{}

private:
int m_iValue1;
char m_cValue1;
int m_iValue2;
char m_cValue2;
double m_dValue1;
};

class CTestB : public CTestA
{
public:
virtual void FuncB()
{}

private:
};

void main()
{
cout << sizeof(CTestB) << endl;

system("pause");
}

Why the output is '32', while my expected is '28'.
AnswerRe: An unexpected output Pin
N a v a n e e t h27-Sep-09 1:07
N a v a n e e t h27-Sep-09 1:07 
GeneralRe: An unexpected output Pin
carter200028-Sep-09 4:47
carter200028-Sep-09 4:47 
AnswerRe: An unexpected output Pin
Stuart Dootson27-Sep-09 4:17
professionalStuart Dootson27-Sep-09 4:17 
GeneralRe: An unexpected output Pin
carter200028-Sep-09 4:59
carter200028-Sep-09 4:59 
GeneralRe: An unexpected output Pin
Stuart Dootson28-Sep-09 6:18
professionalStuart Dootson28-Sep-09 6:18 
GeneralRe: An unexpected output Pin
carter200028-Sep-09 16:19
carter200028-Sep-09 16:19 
QuestionFile Creation in share mode in VC++ Pin
neeraja3126-Sep-09 22:34
neeraja3126-Sep-09 22:34 
AnswerRe: File Creation in share mode in VC++ Pin
Richard MacCutchan27-Sep-09 1:15
mveRichard MacCutchan27-Sep-09 1:15 
GeneralRe: File Creation in share mode in VC++ Pin
neeraja3127-Sep-09 2:37
neeraja3127-Sep-09 2:37 
GeneralRe: File Creation in share mode in VC++ Pin
Richard MacCutchan27-Sep-09 6:09
mveRichard MacCutchan27-Sep-09 6:09 
QuestionRe: File Creation in share mode in VC++ Pin
David Crow28-Sep-09 4:08
David Crow28-Sep-09 4:08 
AnswerRe: File Creation in share mode in VC++ Pin
sunlin727-Sep-09 3:01
sunlin727-Sep-09 3:01 
GeneralRe: File Creation in share mode in VC++ Pin
neeraja3127-Sep-09 3:07
neeraja3127-Sep-09 3:07 
AnswerRe: File Creation in share mode in VC++ Pin
David Crow28-Sep-09 4:15
David Crow28-Sep-09 4:15 
QuestionIE8 problem Pin
sharanu26-Sep-09 21:49
sharanu26-Sep-09 21:49 
AnswerRe: IE8 problem Pin
Richard MacCutchan27-Sep-09 1:19
mveRichard MacCutchan27-Sep-09 1:19 
QuestionAre file sizes the same under different operating systems? Pin
includeh1026-Sep-09 18:18
includeh1026-Sep-09 18:18 

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.