In unmanaged C++ we can set null to a pointer just like this:
CUnmanagedClass *pClass = NULL;
But how can we do this in managed C++? there is a new keyword in C++/CLI "nullptr"
CManagedClass ^hClass = nullptr;
Also you can use it to check if a class has been set.
CUnmanagedClass *pClass = NULL;
But how can we do this in managed C++? there is a new keyword in C++/CLI "nullptr"
CManagedClass ^hClass = nullptr;
Also you can use it to check if a class has been set.