INT_PTR in VC++ 2010
-
Is INT_PTR available in VC++ 2010? Is it safe to use instead of int in places like getting return value from
CDialog::DoModal()
etc?-- "Programming is an art that fights back!"
Yes, the
INT_PTR
is available in VC++ 2010, and not only it's safe to use it as return value from calls likeCDialog::DoModal()
but it is strongly recommended! That type is defined astypedef int __w64 INT_PTR;
this means that it is just anint
: the__w64
keyword is an hint that the compiler uses to find 64-bit portability issues and warn about it. -
Is INT_PTR available in VC++ 2010? Is it safe to use instead of int in places like getting return value from
CDialog::DoModal()
etc?-- "Programming is an art that fights back!"
Yes it is! answer to second question is also Yeap
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
Never mind - my own stupidity is the source of every "problem" - Mixturecheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You