THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 11/05/2005 at 11:50, xxxxxxxx wrote:
Cinema 4D Version: 8.2
Platform: Mac ; Mac OSX ;
Language(s) : C++ ;
I'm receiving a confusing error during compilation of my plugin in CW Pro 9 on MacOS. This error never happens in Windows using VC++ 6 and hadn't happened in similar situations, only this one.
The type of error is like this (typically) :
baseObject->SetParameter(DescID(LIGHT_TYPE), GeData(LIGHT_TYPE_DISTANT), NULL);
And I receive this error:
Error : ambiguous access to overloaded function
SetParameter() is used extensively in other places in my code (for setting Material channel, Tag, other Object parameters) and this is the only place where it is occuring: Mac, baseObject, light?
What the ...? ;)
On 11/05/2005 at 12:10, xxxxxxxx wrote:
Found it. It actually wanted the type specified, in just this one situation. Hmmm...
baseObject->SetParameter(DescID(LIGHT_TYPE), GeData((LONG)LIGHT_TYPE_DISTANT), NULL);
satisfies. Strange but working. :)