[ROOT] hello

From: kODe mASteR (kode_master@interia.pl)
Date: Fri Jul 18 2003 - 23:59:38 MEST


Hello again,

This was an example:
   G__loadfile("script.cxx");
   G__scratchall();

of course I have a code betwen those functions.
Of course there was a file in the c: drive when i was testing it.

I found something else:
I ran cint.exe fron cintwin.tar (a compiled wersion of cint - i think?)and tried to load (execute) a file wist "x" command and it showed me:
 #error win32api.dll is not ready. Run setup.bat in ...
 Dictionary pos....

Why must i setup win32api.dll before use it?

Thank You for any sugestions.
----------------------------------------------------------------
=====================================
Hi,

> But there is always returned -1. ... WHY?

Hard to say :) (see http://root.cern.ch/root/roottalk/RoottalkRules.html).

The -1 indicates that for some reasons CINT was unable to open or to load it
in the interpreter.
This can have many causes (Isn't there any output to the screen?).  I am
assuming that you do
have a file named 'script.cxx' in your top directory or your C: drive.  If
this is not the case
then you got your answer.  If this is the case, check if you can use a
different casing.

Also I am surprised that you have:

   G__loadfile("script.cxx");
   G__scratchall();

Since you clean-up immediately after loading the file, it is unlikely to do
much (it will only executed the initialization and destruction of the global
variable in script.cxx).

Cheers,
Philippe.

-----Original Message-----
From: owner-roottalk@pcroot.cern.ch [mailto:owner-roottalk@pcroot.cern.ch]On
Behalf Of kODe mASteR
Sent: Friday, July 18, 2003 3:25 AM
To: roottalk@pcroot.cern.ch
Subject: [ROOT] Hello


Hello,
I'm sorry for my language i'm from poland and i don't know english well.

I'm using CINT in my MFC win app.

I'm wrote a script and i want to run it inside the app.

#inside app C code - runing the script
G__init_cint("cint");
G__loadfile("script.cxx");
G__scratchall();

...but the loadfile func always returns ( -1 ).
I'v tried to change the path to: G__loadfile("C:/script.cxx"); or
G__loadfile("c:\\script.cxx");
And I copied the script in to c:\\ or c:/ if you like.

But there is always returned -1. ... WHY?


----------------------------------------------------------------------
Klikaj!!! I skorzystaj!!! >>> http://link.interia.pl/f1739



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:13 MET