R
Robin Imrie
Hi,
I have some code like this....
MyObject ^o = gcnew MyObject();
My2ndObject ^obj2 = o->GetObject();
if( obj2 != NULL )
{
//... do stuff
}
when i compile this I get an error(C2446) no conversion from 'int' to
'My2ndObject ^'
no user-defined-conversion operator available, or
no standard conversion exists from the boxed form of the arithetic type
to the target type
I could do this in VS2003 what do I now need to do now for VS2005?
Thanks
Robin
I have some code like this....
MyObject ^o = gcnew MyObject();
My2ndObject ^obj2 = o->GetObject();
if( obj2 != NULL )
{
//... do stuff
}
when i compile this I get an error(C2446) no conversion from 'int' to
'My2ndObject ^'
no user-defined-conversion operator available, or
no standard conversion exists from the boxed form of the arithetic type
to the target type
I could do this in VS2003 what do I now need to do now for VS2005?
Thanks
Robin