On 17/02/2014 at 07:12, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R15
Platform: Windows ;
Language(s) : C++ ;
---------
I have a RegisterObjectPlugin and I would like to use some strings defined in the string resource file.
However it returns "strNotFound". The plugin is working and the description is shown
Bool ret = RegisterObjectPlugin(ID_SOLAROBJECT, PluginName, OBJECT_GENERATOR, SolarObject::Alloc, "Osolar", AutoBitmap("solar.tif"), 0);
if (ret)
{
GePrint ("About: " + GeLoadString(ABOUT));
}
Part of the resource file
STRINGTABLE Osolar
{
ABOUT "About";
Resource init is done in main.cpp
Bool PluginMessage(Int32 id, void* data)
{
switch (id)
{
case C4DPL_INIT_SYS:
if (!resource.Init())
return false; // don't start plugin without resource