It's obvious when you think about it, but

| 2 Comments

Piracy is not an enemy until you are famous.
Until that point, obscurity is your enemy.
I think independent creators should spend all of their attention fighting obscurity until they are famous, and only then should start to worry about piracy.

Derek Silvers, via microISV

2 Comments

Hi,
There was a post here in this blog long time ago in which you discussed your preference of constant usage in conditional statements something like:

if(INVALID_HANDLE_VALUE != hFile)

is better than

if (hFile != INVALID_HANDLE_VALUE )

If you can, then please give me the link of that post.

Maria,

Hmm, I can't remember the post, and it's more likely

if (INVALID_HANDLE_VALUE == hFile)
as that protects you from the mistype of
if (INVALID_HANDLE_VALUE = hFile)
though most compilers now warn of this anyway.

Otherwise it may be this post on the conditional operator?

I've tried using the search facility to search for const, constant and conditional and nothing obvious comes up. Sorry.

Leave a comment