R
RFOG
In C# is very easy:
if(myDelegate==null)
//Install it.
but in C++/CLI that does not work:
if(myDelegate==nullptr)
//Install it.
gives:
Error C3918:usage requires 'member' to be a data member
But myDelegate has operator == overloaded. I don't understand why it fails.
If I try some like this:
myDelegate->GetInvocationList()->Length==0
I get same error.
And other variations.
--
Visita mi blog: http://rfog.blogsome.com
Libros, ciencia ficción y programación
========================================
La amistad es más difícil y más rara que el amor. Por eso, hay que salvarla
como sea.
-- Alberto Moravia. (1907-1990) Escritor italiano.
if(myDelegate==null)
//Install it.
but in C++/CLI that does not work:
if(myDelegate==nullptr)
//Install it.
gives:
Error C3918:usage requires 'member' to be a data member
But myDelegate has operator == overloaded. I don't understand why it fails.
If I try some like this:
myDelegate->GetInvocationList()->Length==0
I get same error.
And other variations.
--
Visita mi blog: http://rfog.blogsome.com
Libros, ciencia ficción y programación
========================================
La amistad es más difícil y más rara que el amor. Por eso, hay que salvarla
como sea.
-- Alberto Moravia. (1907-1990) Escritor italiano.