THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 04/11/2011 at 13:13, xxxxxxxx wrote:
No one?
Here's an example:
** The .cpp file:**
#include "c4d.h"
#include "c4d_symbols.h"
#include "tsimpletag.h" //The .h file holding the ID numbers for the first .res file's GUI items
#include "tsimpletag2.h" //The .h file holding the ID numbers for the second .res file's GUI items
#define PLUGIN_ID 1000003 // be sure to use a unique ID obtained from www.plugincafe.com
class SimpleTag : public TagData
{
public:
virtual Bool Message(GeListNode *node, LONG type, void *t_data);
virtual Bool Init(GeListNode *node);
virtual Bool GetDDescription(GeListNode *node, Description *description,DESCFLAGS_DESC &flags);
virtual EXECUTIONRESULT Execute(BaseTag *tag, BaseDocument *doc, BaseObject *op, BaseThread *bt, LONG priority, EXECUTIONFLAGS flags);
static NodeData *Alloc(void) { return gNew SimpleTag; }
};
Bool SimpleTag::Message(GeListNode *node, LONG type, void *data)
{
return TRUE;
}
Bool SimpleTag::Init(GeListNode *node)
{
BaseTag *tag = (BaseTag* )node; // Assigns a variable to the tag's node
BaseContainer *data = tag->GetDataInstance(); // Assigns a variable to that node's container
data->SetBool(MYBOX,FALSE); //This checkbox is in the first .res file("tsimpletag.res")
data->SetString(MYTEXTBOX2, "HELLO_2"); //This textbox is located inside of a second .res file("tsimpletag2.res")
return TRUE;
}
Bool SimpleTag::GetDDescription(GeListNode *node, Description *description,DESCFLAGS_DESC &flags)
{
return TRUE;
}
EXECUTIONRESULT SimpleTag::Execute(BaseTag *tag, BaseDocument *doc, BaseObject *op, BaseThread *bt, LONG priority, EXECUTIONFLAGS flags)
{
return EXECUTIONRESULT_OK;
}
Bool RegisterSimpleTag(void)
{
return RegisterTagPlugin(PLUGIN_ID,GeLoadString(IDS_SIMPLETAG),TAG_EXPRESSION|TAG_VISIBLE,SimpleTag::Alloc,"tsimpletag",AutoBitmap("myicon.tif"),0);
}
_ The c4d_symbols file:_
enum
{
// string table definitions
IDS_SIMPLETAG = 10000,
IDS_SIMPLETAG2 = 10001,
// End of symbol definition
_DUMMY_ELEMENT_
};
It looks to me like the plugin is loading the first .res file through this code in the registration:GeLoadString(IDS_SIMPLETAG).
But I have no idea how to change it to load multiple .res files?
Am I looking in the wrong place to do this?
Maybe, possibly, I have to use some sort of LoadDescription() instead?
-ScottA