routine_id question

new topic     » topic index » view thread      » older message » newer message

Maybe this is something I missed in previous questions, but I can't quite =
get things working the way I want.  Or maybe this is a Windows related =
problem.  I have a main program with a global id atom and two included =
files.  The first file needs to call a routine in the second file which =
also calls global routines in the first file.  The first file includes =
win32lib.  When an event is trapped, it calls the routine in the second =
include file, but Euphoria responds with an error that the id contains no =
value.  Any help would be appreciated.

---- main file ------

global constant barID

include file1
include file2

------- file 1 -------

include win32lib.ew

global procedure onKeyPress(atom code, atom shift)=20
  -- blah, blah, blah
  call_proc(barID,{})
  -- blah, blah, blah
end procedure

-------- file 2 --------

global procedure bar()
  -- blah, blah, blah
end procedure
barID =3D routine_id("bar")

Michael J. Sabal
mjs at osa.att.ne.jp=20

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu