Hi Fons,
I added <stdlib.h>, but I continue getting the following error:
c:\root\gui\gui 2\dialogs.h(39) : error C2440: 'initializing' : cannot
convert from 'const class TGWindow *' to 'class TGWindow *'
Conversion loses qualifiers
I tried to use a open file dialog taken from Bertrand Bellenot's
RootShower example:
TGFileInfo fi;
fi.fFileTypes = filetypes;
new TGFileDialog(this, this, kFDOpen, &fi); printf(fi.fFilename);
But I have other kind of errors
I can see dialog window, but when I choose the file I want to open I get
the following error:
Fatal in <operator delete>: space was not allocated via custom new
Aborting Warning in <TWinNTSystem::StackTrace>: this method must be
overridden!
...and I get a runtime error!
Note that I can see the filename (the printf works).
I need to open a file, and in win32gdk version I cannot use standard way
f1=new TFile(filename);
What is the easiest way to open a file with this root version (even
without graphical window)?
Cheers,
Luca
_________________________________________
Dr. Luca Di Fino - luca.difino@roma2.infn.it
University of Rome Tor Vergata and INFN Roma 2
Via della Ricerca Scientifica 1
I-00133 Rome Italy
Phone: +39 06 7259 4502 _________________________________________
-> -----Messaggio originale-----
-> Da: Fons Rademakers [mailto:Fons.Rademakers@cern.ch]
-> Inviato: luned́ 24 giugno 2002 1.55
-> A: Luca Di Fino
-> Oggetto: Re: R: [ROOT] Simple File Dialog
->
->
-> Hi Luca,
->
-> atoi and atof are in <stdlib.h>
->
-> Cheers, Fons.
->
->
->
-> On Thu, 2002-06-20 at 16:49, Luca Di Fino wrote:
-> > Hi Fons,
-> > I tried to compile dialogs.C, but I get some errors.
-> > I included Class definition in the .h of my project, and I
-> wanted to
-> > insert example code (found in the initial comment of
-> dialogs.C) but in
-> > compiling I get the following errors.
-> >
-> >
-> > c:\root\gui\gui 2\mymain.h(66) : error C2440:
-> 'initializing' : cannot
-> > convert from 'const class TGWindow *' to 'class TGWindow *'
-> > Conversion loses qualifiers
-> > c:\root\gui\gui 2\mymain.h(282) : error C2065: 'atoi' : undeclared
-> > identifier c:\root\gui\gui 2\mymain.h(296) : error C2065: 'atof' :
-> > undeclared identifier
-> >
-> > Where is the problem?
-> > I didn't change the code, is there any additional code that is
-> > missing? Thanks, Luca
-> >
-> > _________________________________________
-> >
-> > Dr. Luca Di Fino - luca.difino@roma2.infn.it
-> > University of Rome Tor Vergata and INFN Roma 2
-> > Via della Ricerca Scientifica 1
-> > I-00133 Rome Italy
-> > Phone: +39 06 7259 4502 _________________________________________
-> >
-> >
-> >
-> > -> -----Messaggio originale-----
-> > -> Da: owner-roottalk@pcroot.cern.ch
-> > -> [mailto:owner-roottalk@pcroot.cern.ch] Per conto di
-> Fons Rademakers
-> > -> Inviato: luned́ 17 giugno 2002 20.01
-> > -> A: Luca Di Fino
-> > -> Cc: roottalk@pcroot.cern.ch
-> > -> Oggetto: Re: [ROOT] Simple File Dialog
-> > ->
-> > ->
-> > -> Hi Luca,
-> > ->
-> > -> have a look in $ROOTSYS/tutorials/dialogs.C
-> > ->
-> > -> Cheers, Fons.
-> > ->
-> > ->
-> > ->
-> > -> On Mon, 2002-06-17 at 17:04, Luca Di Fino wrote:
-> > -> > Hi Rooters,
-> > -> > how can I create a simple file dialog using TGFileDialog
-> > -> class, and
-> > -> > store the filename in a char variable? Thanks, Luca
-> > -> > _________________________________________
-> > -> >
-> > -> > Dr. Luca Di Fino - luca.difino@roma2.infn.it University of
-> > -> > Rome Tor Vergata and INFN Roma 2 Via della Ricerca Scientifica
-> > -> > 1 I-00133 Rome Italy
-> > -> > Phone: +39 06 7259 4502
-> _________________________________________
-> > -> >
-> > -> >
-> > -> --
-> > -> Org: CERN, European Laboratory for Particle Physics.
-> > -> Mail: 1211 Geneve 23, Switzerland
-> > -> E-Mail: Fons.Rademakers@cern.ch Phone: +41
-> 22 7679248
-> > -> WWW: http://root.cern.ch/~rdm/ Fax: +41
-> 22 7679480
-> > ->
-> >
-> --
-> Org: CERN, European Laboratory for Particle Physics.
-> Mail: 1211 Geneve 23, Switzerland
-> E-Mail: Fons.Rademakers@cern.ch Phone: +41 22 7679248
-> WWW: http://root.cern.ch/~rdm/ Fax: +41 22 7679480
->
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:58 MET