Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
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,...); \>
\> 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?
Alloc(void\* p)
Thanks and Bye.
On 29/10/2008 at 01:52, xxxxxxxx wrote:
Currently i see no way to do this. Why you want to access this kind of information in Alloc()?
cheers, Matthias