THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 30/04/2008 at 13:03, xxxxxxxx wrote:
Cinema 4D Version: R10.111+
Platform: Windows ; Mac ; Mac OSX ;
Language(s) : C++ ;
My general question is when/if ReadPluginInfo() might be available/valid to call in during the plugin startup process...
More specifically, I'd like to know if it's ok to call ReadPluginInfo() from inside the SNHookClass::SNCheck() method. My SNHookClass-derived class is being registered when my PluginMessage() code recieves a C4DPL_INIT_SYS message, but it's not clear to me exactly when the SNCheck() is being called, although I deduce that it's sometime after registering my hook and before calling my PluginStart().
On a similar and potentially related note, I am also now doing the resource.Init() just prior to registering the hook (on that C4DPL_INIT_SYS message), so that much is taken care of... I just need to know if it's ok to call ReadPluginInfo() from within SNCheck().