THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 28/11/2012 at 12:59, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 12
Platform: Mac OSX ;
Language(s) : C++ ;
---------
Hi
I am slowly working my way into understanding C++ plugin development on OSX.
A really big problem for me is that for every step forward I pay dearly in time spent hunting down totally non-obvious problems. Such as this one:
I finally managed to build a stripped down, bare bones Command Tool plugin. I thought it might be a good idea to have a good, lean template to start other projects. My template project gets properly initialized when I launch C4D and shows its minimal dialog when I click it in the Plugins menu. I 'cloned' a second project from this template. Changed names of the .h, .res files, etc. And changed the Plugin ID. Yet, after I launch C4D and look in the Console window I get a message that the 'cloned' plugin's ID was already registered and it shows the ID and name of the template plugin. When I remove the template plugin and launch C4D again the clone initializes correctly.
In my source code the clone clearly has NOT the same ID as the template.
#define ID_OBJECTALIGNER 1000016
#define ID_C4DCOMMAND 1000013
Really not sure what else to do. Is there some odd thing with C4D I need to know?
Thanks
Peter