
Signature
Greetings
Jochen
My blog about Win32 and .NET
http://blog.kalmbachnet.de/
I'm in VC++2005 (managed C++) and I used 'null' , then I obtained the same
think 'null undeclared identifier' and when I used '0' I obtained 'cannot
convert from 'int' to 'System::Drawing::Image ^''
Please, what is the problem?
Carl Daniel [VC++ MVP] - 15 Jun 2005 17:40 GMT
> I'm in VC++2005 (managed C++) and I used 'null' , then I obtained the
> same think 'null undeclared identifier' and when I used '0' I
> obtained 'cannot convert from 'int' to 'System::Drawing::Image ^''
> Please, what is the problem?
use nullptr instead of null (which is the C# keyword).
-cd
Jochen Kalmbach [MVP] - 15 Jun 2005 18:46 GMT
Hi Carl!
>>I'm in VC++2005 (managed C++) and I used 'null'
>
> use nullptr instead of null (which is the C# keyword).
Yes, sorry... I was forgot "ptr"...

Signature
Greetings
Jochen
My blog about Win32 and .NET
http://blog.kalmbachnet.de/
Tamas Demjen - 15 Jun 2005 17:44 GMT
In VC++2005 you should use 'nullptr'.
Tom
> I'm in VC++2005 (managed C++) and I used 'null' , then I obtained the same
> think 'null undeclared identifier' and when I used '0' I obtained 'cannot
> convert from 'int' to 'System::Drawing::Image ^''
> Please, what is the problem?