NULL in managed C++

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!
 
B

Ben Voigt

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++.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top