Hi Zaldy, > > Dear Valeriy, > > Thanks for the prompt reply > But I still have questions. > > In this line, how do we make a "gMyClassObject" global in the main > program? Should we use "gROOT->Loop()"? Global is an object, I would say "known to CINT". gROOT is an example of global object. It can be done via dictionary generation for MyClass and adding to LinDef.h #pragma link C++ global gMyClassObject; Check http://root.cern.ch/root/CintGenerator.html http://root.cern.ch/root/RootCintMan.html If you do not want to deal with dictionary generation you would follow Tetris approach or you can use TGxxx classes http://root.cern.ch/root/html/GUI_Index.html Check $ROOTSYS/test/guitest.cxx example. HTH. Regards. Valeriy
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:13 MET