Click here to Skip to main content
15,914,413 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
JokeRe: inline or macro Pin
David Crow8-Jul-09 7:07
David Crow8-Jul-09 7:07 
JokeRe: inline or macro Pin
Roger Stoltz8-Jul-09 8:11
Roger Stoltz8-Jul-09 8:11 
AnswerRe: inline or macro Pin
Stuart Dootson8-Jul-09 7:14
professionalStuart Dootson8-Jul-09 7:14 
AnswerRe: inline or macro Pin
KellyR8-Jul-09 7:36
KellyR8-Jul-09 7:36 
GeneralRe: inline or macro Pin
Michael Schubert8-Jul-09 10:48
Michael Schubert8-Jul-09 10:48 
QuestionRe: inline or macro Pin
Rajesh R Subramanian8-Jul-09 19:35
professionalRajesh R Subramanian8-Jul-09 19:35 
AnswerRe: inline or macro Pin
Michael Schubert8-Jul-09 20:59
Michael Schubert8-Jul-09 20:59 
GeneralRe: inline or macro Pin
Rajesh R Subramanian8-Jul-09 21:55
professionalRajesh R Subramanian8-Jul-09 21:55 
Michael Schubert wrote:
I had mixed results when I played around with this. The VC6 compiler does ignore __forceinline when a function is beyond a certain complexity/size, especially when there is a call to another function within.


Exactly! I've struggled with this a few years back (VC6 compiler) which ignored the keyword and made it a normal function, realising that the function is a little more complex than what should it be to qualify as an inline one.

I wanted it to be inline because I kept some of the code for application validation and secure updates (based on the version purchased) in that. The function was being called from several places in the source and I didn't want it to be pointing to one function call (trying to make a cracker's job a little tough). So, I realised this is an arrogant display of - "I know it better than you, so you cannot force me" attitude by the MS compiler. They might as well remove this keyword; I don't find it to behave any different the __inline keyword.

Good to know the intel compiler just does what we ask it to do. But, after all, MS knows what's best for us, better than we do. Smile | :)


It is a crappy thing, but it's life -^ Carlo Pallini

AnswerRe: inline or macro Pin
CPallini8-Jul-09 21:09
mveCPallini8-Jul-09 21:09 
GeneralRe: inline or macro Pin
Rajesh R Subramanian8-Jul-09 21:57
professionalRajesh R Subramanian8-Jul-09 21:57 
AnswerRe: inline or macro Pin
Maximilien8-Jul-09 8:27
Maximilien8-Jul-09 8:27 
GeneralRe: inline or macro Pin
CPallini8-Jul-09 21:04
mveCPallini8-Jul-09 21:04 
Questiondifference b/w iterators and indexing for STL Pin
hawk23reddy8-Jul-09 6:32
hawk23reddy8-Jul-09 6:32 
AnswerRe: difference b/w iterators and indexing for STL Pin
minkowski8-Jul-09 6:57
minkowski8-Jul-09 6:57 
AnswerRe: difference b/w iterators and indexing for STL Pin
Stuart Dootson8-Jul-09 7:04
professionalStuart Dootson8-Jul-09 7:04 
QuestionHow to use gotoxy().....? Pin
Razanust8-Jul-09 6:08
Razanust8-Jul-09 6:08 
AnswerRe: How to use gotoxy().....? Pin
Michael Schubert8-Jul-09 6:58
Michael Schubert8-Jul-09 6:58 
AnswerRe: How to use gotoxy().....? Pin
Jijo.Raj8-Jul-09 7:20
Jijo.Raj8-Jul-09 7:20 
Questionnewbie to multi threading Pin
minkowski8-Jul-09 5:45
minkowski8-Jul-09 5:45 
AnswerRe: newbie to multi threading Pin
Stuart Dootson8-Jul-09 6:54
professionalStuart Dootson8-Jul-09 6:54 
GeneralRe: newbie to multi threading Pin
minkowski8-Jul-09 7:04
minkowski8-Jul-09 7:04 
GeneralRe: newbie to multi threading Pin
Stuart Dootson8-Jul-09 9:34
professionalStuart Dootson8-Jul-09 9:34 
GeneralRe: newbie to multi threading Pin
minkowski8-Jul-09 22:01
minkowski8-Jul-09 22:01 
GeneralRe: newbie to multi threading Pin
Stuart Dootson9-Jul-09 0:28
professionalStuart Dootson9-Jul-09 0:28 
GeneralRe: newbie to multi threading Pin
minkowski9-Jul-09 0:55
minkowski9-Jul-09 0:55 

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.