help with GeResource

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 16/05/2005 at 11:08, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   9 
Platform:   Windows  ;   
Language(s) :   C.O.F.F.E.E  ;

---------
hi. im a total coffee beginner. and i could use some help. i hope you can help me.

the following script does not work. because ist wrong, but i dont know how to do i better. please help.

  
include "c4d_symbols.h"  
  
var PLUGIN_ID = 1017883; //TerraCOFFEE id from www.plugincafe.com  
var PLUGIN_NAME = "tc";  
var HELP_STR = "tc";  
  
var d;  
var resource;  
  
class TerraCOFFEE : MenuPlugin  
{  
public:  
     TerraCOFFEE();  
  
     GetID(); GetName(); GetHelp();  
     Execute(doc);  
     RestoreLayout(secret);  
}  
  
//*---------------Dialog--------------*  
  
class TCDialog : GeDialog  
{  
public:  
     TCDialog();  
     CreateLayout();  
     Command(id,msg);  
     Init();  
}  
  
//*--------------Resource-------------*  
  
class TCResource : GeResource  
{  
public:  
     TCResource(path);  
  
     GetString(id);  
}  
  
//*---------------Funktionen----------*  
  
TCResource::TCResource(path)  
{  
     super(path);  
}  
  
GetString(id)  
{  
  
}  
  
TCDialog::TCDialog()  
{  
     super(PLUGIN_ID);  
}  
  
TCDialog::Init()  
{  
  
}  
  
TCDialog::CreateLayout()  
{  
     return LoadDialogResource(TC_DIALOG, resource, 0);  
}  
  
TerraCOFFEE::TerraCOFFEE()  
{  
     super();  
}  
  
TerraCOFFEE::GetID() { return PLUGIN_ID; }  
TerraCOFFEE::GetHelp() { return HELP_STR; }  
TerraCOFFEE::GetName() { return PLUGIN_NAME; }  
  
TerraCOFFEE::Execute(doc)  
{  
     if (!d) d = new(TCDialog);  
     d->Open(TRUE,-1,-1);  
}  
  
TerraCOFFEE::RestoreLayout(secret)  
{  
     if (!d) d = new(TCDialog);  
     d->RestoreLayout(secret);  
}  
  
main()  
{       
     var root = GeGetRootFilename();  
     root->RemoveLast();  
     var resource = new(TCResource, root);  
     Register(TerraCOFFEE);  
     println("loaded");  
}  
  

i'm desperate....

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 17/05/2005 at 16:30, xxxxxxxx wrote:

i think i should formulate taht one better:

how do i use the GeResource with an non-modal dialog in the right way?