472,143 Members | 1,593 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,143 software developers and data experts.

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 22036

"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 leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.