THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 25/10/2008 at 17:30, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 11
Platform:
Language(s) : C++ ;
---------
Hi!
Before my plugin is done I have a problem with the last concept. I have two different RegisterTagData() functions which register the same TagClass with different IDs.
So I pass the Alloc function as argument.
> \> class MyTag : public TagData \> { \> static NodeData\* Alloc() \> { \> return gNew MyTag; \> } \> } \> \> \> \> \> RegisterTagData(1234 ..., MyTag::Alloc,...); \> RegisterTagData(5678 ..., MyTag::Alloc,...); \>
Is it possible to know which Tag was called in MyTag::Alloc? I prefer to pass a pointer as argument which is passed as argument to MyTag::Alloc like
> Alloc(void\* p)
,... thats not possible. Does anyone know another solution how to know which tag was called?
Thanks and Bye.