c++ - VC++ 2010 Express | Compiler removes some code from my project -


i'm using vc++ 2010 express.

i have code that:

if(strlen("aa") == strlen("bb"))  messagebox("aa == bb"); else  messagebox("aa != bb"); 

in built executable there bytes "aa == bb", there no "aa != bb".
means compiler optimizes predictable code.
there way disable this?

cheers, kamil.

add

#pragma function(strlen) 

to program @ beginning.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -