Click here to Skip to main content
15,896,421 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Need to declare a class ( defined in cpp file ) as friend Pin
Richard Andrew x6427-Mar-15 8:26
professionalRichard Andrew x6427-Mar-15 8:26 
AnswerRe: Need to declare a class ( defined in cpp file ) as friend Pin
Freak3030-Mar-15 1:14
Freak3030-Mar-15 1:14 
AnswerRe: Need to declare a class ( defined in cpp file ) as friend Pin
Stefan_Lang8-Apr-15 4:39
Stefan_Lang8-Apr-15 4:39 
QuestionLinkage Problem in MSVC 2008 (wxWidget 3.0 Application) Pin
Member 1125835326-Mar-15 20:59
Member 1125835326-Mar-15 20:59 
AnswerRe: Linkage Problem Pin
Richard MacCutchan26-Mar-15 21:16
mveRichard MacCutchan26-Mar-15 21:16 
GeneralRe: Linkage Problem Pin
Member 1125835326-Mar-15 23:26
Member 1125835326-Mar-15 23:26 
GeneralRe: Linkage Problem Pin
Jochen Arndt27-Mar-15 0:11
professionalJochen Arndt27-Mar-15 0:11 
GeneralRe: Linkage Problem Pin
Member 1125835327-Mar-15 0:18
Member 1125835327-Mar-15 0:18 
GeneralRe: Linkage Problem Pin
Jochen Arndt27-Mar-15 0:30
professionalJochen Arndt27-Mar-15 0:30 
GeneralRe: Linkage Problem Pin
Member 1125835327-Mar-15 1:50
Member 1125835327-Mar-15 1:50 
GeneralRe: Linkage Problem Pin
Jochen Arndt27-Mar-15 2:14
professionalJochen Arndt27-Mar-15 2:14 
GeneralRe: Linkage Problem Pin
Member 1125835327-Mar-15 2:21
Member 1125835327-Mar-15 2:21 
GeneralRe: Linkage Problem Pin
Jochen Arndt27-Mar-15 2:46
professionalJochen Arndt27-Mar-15 2:46 
GeneralRe: Linkage Problem Pin
Member 1125835327-Mar-15 3:07
Member 1125835327-Mar-15 3:07 
QuestionNeed to open an instance of excel in the same process as my main program. Pin
Raj Abhishek26-Mar-15 4:15
Raj Abhishek26-Mar-15 4:15 
AnswerRe: Need to open an instance of excel in the same process as my main program. Pin
Melqui Andrade31-Mar-15 2:10
Melqui Andrade31-Mar-15 2:10 
QuestionControls, variable and dialogs Pin
lor7526-Mar-15 1:10
lor7526-Mar-15 1:10 
AnswerRe: Controls, variable and dialogs Pin
David Crow26-Mar-15 3:26
David Crow26-Mar-15 3:26 
GeneralRe: Controls, variable and dialogs Pin
lor7526-Mar-15 4:19
lor7526-Mar-15 4:19 
AnswerRe: Controls, variable and dialogs Pin
Freak3030-Mar-15 1:22
Freak3030-Mar-15 1:22 
Questionwin32 - how avoid flickers? Pin
Member 1154582425-Mar-15 11:50
Member 1154582425-Mar-15 11:50 
QuestionVisual Studio C++ compiler empty functions Pin
severin025-Mar-15 10:28
severin025-Mar-15 10:28 
AnswerRe: Visual Studio C++ compiler empty functions Pin
Richard Andrew x6425-Mar-15 15:39
professionalRichard Andrew x6425-Mar-15 15:39 
AnswerRe: Visual Studio C++ compiler empty functions Pin
Daniel Pfeffer25-Mar-15 23:00
professionalDaniel Pfeffer25-Mar-15 23:00 
It depends on whether the method is virtual. It would theoretically be possible to eliminate all calls to empty non-virtual methods. A virtual method may be overridden by a derived class, so the compiler must perform the virtual call.

(There may be some cases where the compiler can prove that the virtual call refers to the base class. In this case, the compiler could optimize the call away.)

As Richard suggests, the best way to check this is to write a short test program.
If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack.

--Winston Churchill

AnswerRe: Visual Studio C++ compiler empty functions Pin
Maximilien26-Mar-15 4:38
Maximilien26-Mar-15 4:38 

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.