NULL in managed C++

  • Thread starter Thread starter Bumbala
  • Start date Start date
B

Bumbala

Hello,

I am working on a Windows Forms Control Library which has some
unmanaged code in it. What is the equivalent of "C# null" in managed
C++?

CUnmanagedClass *pClass = NULL;
ManagedClass^ aClass = ?;

I want to check if aClass has been set.


Thank you!
 
Bumbala said:
Hello,

I am working on a Windows Forms Control Library which has some
unmanaged code in it. What is the equivalent of "C# null" in managed
C++?

nullptr, which is a new keyword in C++/CLI, but about to be included into
Standard C++.
 
Back
Top