Click here to Skip to main content
15,888,340 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
SuggestionRe: How to change the string of a MFC Menu item that contains '\t' Pin
Richard MacCutchan12-May-13 23:02
mveRichard MacCutchan12-May-13 23:02 
AnswerRe: How to change the string of a MFC Menu item that contains '\t' Pin
Jochen Arndt12-May-13 23:40
professionalJochen Arndt12-May-13 23:40 
GeneralRe: How to change the string of a MFC Menu item that contains '\t' Pin
haha_c13-May-13 16:04
haha_c13-May-13 16:04 
GeneralRe: How to change the string of a MFC Menu item that contains '\t' Pin
Jochen Arndt13-May-13 20:57
professionalJochen Arndt13-May-13 20:57 
QuestionCdialog::Create Never comes back Pin
ForNow12-May-13 18:04
ForNow12-May-13 18:04 
AnswerRe: Cdialog::Create Never comes back Pin
Richard MacCutchan12-May-13 21:07
mveRichard MacCutchan12-May-13 21:07 
Questionwhat is the difference between "static" function and "inline" function? [SOLVED] Pin
yu-jian12-May-13 16:53
yu-jian12-May-13 16:53 
AnswerRe: what is the difference between "static" function and "inline" function? Pin
SoMad12-May-13 18:29
professionalSoMad12-May-13 18:29 
You have the idea right, but there are several issues with inline. Here is a list off the top of my head:
1. You can change the setting in the Project Properties -> C/C++ -> Optimizations -> Inline Function Expansion.
2. You say you de-assembled the Debug build of your exe, but for Debug builds the default setting is Disabled.
3. The inline keyword does not order the compiler to expand the function inline, it is merely a request. The compiler will determine if it is worth making it inline or if it is better left as a function call.
4. If a function is marked as inline and called from multiple other function, it might be inlined in some of the calling functions and not in others. Again the compiler determines whether it is worth it.
5. If you discover that the compiler is not inlining a function you have marked as inline and you really, really, really want it inlined because you think you know better or you want to run profiling with it inlined and not inlined, try using the __forceinline keyword.

http://msdn.microsoft.com/en-us/library/z8y1yy88(v=vs.90).aspx[^]

Soren Madsen
"When you don't know what you're doing it's best to do it quickly" - Jase #DuckDynasty

GeneralRe: what is the difference between "static" function and "inline" function? Pin
yu-jian14-May-13 4:13
yu-jian14-May-13 4:13 
AnswerRe: what is the difference between "static" function and "inline" function? Pin
pasztorpisti12-May-13 21:58
pasztorpisti12-May-13 21:58 
QuestionCHtmlEditCtrl - Overriding printer dialog and use with modeless dialogs Pin
Member 822518012-May-13 4:31
Member 822518012-May-13 4:31 
QuestionHow to set up a computer for network programming on UNIX [SOLVED] Pin
noislude11-May-13 13:44
noislude11-May-13 13:44 
AnswerRe: How to set up a computer for network programming on UNIX Pin
Richard MacCutchan11-May-13 21:24
mveRichard MacCutchan11-May-13 21:24 
GeneralRe: How to set up a computer for network programming on UNIX Pin
noislude12-May-13 3:43
noislude12-May-13 3:43 
GeneralRe: How to set up a computer for network programming on UNIX Pin
Richard MacCutchan12-May-13 3:58
mveRichard MacCutchan12-May-13 3:58 
GeneralRe: How to set up a computer for network programming on UNIX Pin
noislude12-May-13 4:09
noislude12-May-13 4:09 
GeneralRe: How to set up a computer for network programming on UNIX Pin
Richard MacCutchan12-May-13 4:15
mveRichard MacCutchan12-May-13 4:15 
GeneralRe: How to set up a computer for network programming on UNIX Pin
dusty_dex12-May-13 5:02
dusty_dex12-May-13 5:02 
GeneralRe: How to set up a computer for network programming on UNIX Pin
noislude12-May-13 8:54
noislude12-May-13 8:54 
QuestionStrange ERROR!!!!!!!!!!!!!????????????? Pin
OmarSH11-May-13 10:02
OmarSH11-May-13 10:02 
AnswerRe: Strange ERROR!!!!!!!!!!!!!????????????? Pin
dusty_dex11-May-13 10:23
dusty_dex11-May-13 10:23 
GeneralRe: Strange ERROR!!!!!!!!!!!!!????????????? Pin
OmarSH11-May-13 11:06
OmarSH11-May-13 11:06 
GeneralRe: Strange ERROR!!!!!!!!!!!!!????????????? Pin
dusty_dex11-May-13 12:51
dusty_dex11-May-13 12:51 
AnswerRe: Strange ERROR!!!!!!!!!!!!!????????????? Pin
Richard MacCutchan11-May-13 21:22
mveRichard MacCutchan11-May-13 21:22 
GeneralRe: Strange ERROR!!!!!!!!!!!!!????????????? Pin
OmarSH12-May-13 3:09
OmarSH12-May-13 3: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.