469,267 Members | 883 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,267 developers. It's quick & easy.

NULL in managed C++

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!

Jan 11 '07 #1
2 21868

"Bumbala" <bu*****@gmail.comwrote in message
news:11**********************@p59g2000hsd.googlegr oups.com...
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++.
>
CUnmanagedClass *pClass = NULL;
ManagedClass^ aClass = ?;

I want to check if aClass has been set.
Thank you!

Jan 11 '07 #2
Thank you :)

Ben Voigt wrote:
"Bumbala" <bu*****@gmail.comwrote in message
news:11**********************@p59g2000hsd.googlegr oups.com...
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++.

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

I want to check if aClass has been set.
Thank you!
Jan 12 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by SSRoy | last post: by
7 posts views Thread by Dirk Reske | last post: by
27 posts views Thread by David W | last post: by
7 posts views Thread by Robin Imrie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.