Hi Maurizio, Process your C function "show" via rootcint, such that you call it from the interpreter (or a TControlBar, menu, etc.) Make a LinkDef.h file containing statements like: #pragma link C++ function show; then run rootcint rootcint -f mydict.cxx -c file.h LinkDef.h where file.h contains the prototypes of your C function(s) Rene Brun Maurizio Ungaro wrote: > > Rene Brun wrote: > > >Maurizio, > > > >You can specify any executable command that you can execute at the CINT > >command line. This can include calls to CINT interpreted functions > >or calls to compiled member functions for classes processed via rootcint. > > > > > > Hi Rene, > thanks for answering. > What I meant is something like > > bar->AddButton("Show electron fiducials cut for sector 1", "show(1, 0)"); > > where show is my function in a standalone code. > The bar scope doesn't know it (I got message "show unknown > in current scope"). > > I'm sorry if I miss something in the manual. Is there a way to > make CINT "see" that function? > > Of course all of the above works in a macro with command line. > > thanks and sorry - I know this was brought up a few times. > mauri
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:15 MET