Sorry I have to ask the question again. I generate the dictionary but still doesn’t work.
The question is why DoSomething() works in:
[size=100]
button->Connect(“Clicked()”,“button”,this,“DoSomething()”);
[/size]
but not in
[size=100]
gPad->AddExec(“Aname”,“DoSomething()”); ??
[/size]
Many Thanks.
#################################################################
[color=indigo]
Thank you very much for you kind reply.
I copy some lines from the Makefile of ROOT/test directory and solve the problem.
Thank you.
[/color]
[color=darkblue]
It is likely that you forget to generate a dictionary for your code.
When you call AddExec your function PeakPoint must be accessible from
the interpreter.
If you do not understand what I am talking about, send the shortest possible ,but running piece of code, we will add the relevant bits to create a dictionary.
or, if you are in a rush, look at the Users Guide.
Rene[/color]