Discussion:
NULL or nullptr with MFC?
(too old to reply)
JiiPee
2016-01-26 23:38:25 UTC
Permalink
MFC uses NULL (=0) everywhere. Is it good practice to mix this C++11
nullptr with it or use NULL everywhere?
JCO
2016-04-16 17:12:22 UTC
Permalink
"JiiPee" wrote in message news:OrTpy.479963$***@fx44.am4...

MFC uses NULL (=0) everywhere. Is it good practice to mix this C++11
nullptr with it or use NULL everywhere?
This works because the Address of the number 0 is at location 0. So what
your seeing may seem misleading but is actually stating that NULL = Address
of # (which is zero).

This is Standard, you should not have any issues.

Loading...