Can't find Slots

Hello All,
I have a small gui when I run it from CINT everything is fine, when I try to run a stand alon version i get the following errors:

Error in TQObject::CheckConnectArgs: slot SlideEvent() does not exist
Error in TQObject::CheckConnectArgs: slot SlideTextEvent() does not exist
Error in TQObject::CheckConnectArgs: slot ComboEvent() does not exist
Error in TQObject::CheckConnectArgs: slot OKEvent() does not exist
Error in TQObject::CheckConnectArgs: slot RecallEvent() does not exist

I can’t see any problems in the code :confused:

here is more information maybe then somebody will have some ideas about what am i doing wrong, my class looks like:

class MyGuiClass
{

RQ_OBJECT(“MyGuiClass”)

private:

TGTextEntry *s_current, *s_runtype, *s_name, *s_runnum;
TGComboBox *cmb_runtype;
TGHSlider *sld_current;
TGTextEdit *txt_comments;
TGTextButton *ok, *cancel, *recall;

TGMainFrame *fMain;

Double_t lookup[175];
Int_t maxrange;

Char_t *str_runtype[5];

public:

MyGuiClass(const TGWindow *p, UInt_t w, UInt_t h);
virtual ~MyGuiClass();
void InitVars();
void SlideEvent();
void RecallEvent();
void SlideTextEvent();
void ComboEvent();
void OKEvent();
};

and inside the constructor MyGuiClass(const TGWindow *p, UInt_t w, UInt_t h) i try to connect the slots to signals:

MyGuiClass::MyGuiClass(const TGWindow *p, UInt_t w, UInt_t h)
{


ok->Connect(“Clicked()”,“MyGuiClass”, this, “OKEvent()”);

}

everything works fine if I run the code from interpreter but the compiled version complains about not being able to find the slots.

aslo if I just put a call to the slot function inside the constructor of my class that works in both cases (compiled & interpreted):

MyGuiClass::MyGuiClass(const TGWindow *p, UInt_t w, UInt_t h)
{


OKEvent();

}

any ideas what am I doing wrong?

Hi ateymura,
unfortunatelly this is very FAQ question.
Your MyGuiClass desperately needs dictionary :cry: .
Check pages 403-408 in the ftp://root.cern.ch/root/doc/chapter23.pdf
Please, post your questions and comments to "ROOT Documentaion Forum"
root.cern.ch/phpBB2/viewforum.php?f=10
We are happy to provide more sophisticated guidance.

Thanks. Regards. Valeriy