Re: call a proc from c



nicolas wrote:
hi all
soryy for multi posting, but:
is it possible to launch a tcl procedure (fire) containing tk command
from c.
here's a proc i would like to start:

proc fire {x} {
pack [label .l -text $x] -side top
}

when i try with Tcl_Eval, label is not recognize.
very very much thanks for any helps

Tcl_Eval is the correct thing. Before you execute Tcl_Eval, make sure that you have loaded the tk library.
Just run on the top of your C-Program something like


Tcl_Eval(interp, "package require Tk");

khamis
--
Try Code-Navigator on http://www.codenav.com
a source code navigating, analysis and developing tool.
It supports following languages:
    * C/C++
    * Java
    * .NET (including CSharp, VB.Net and other .NET components)
    * Classic Visual Basic
    * PHP, HTML, XML, ASP, CSS
    * Tcl/Tk,
    * Perl
    * Python
    * SQL,
    * m4 Preprocessor
    * Cobol
.



Relevant Pages

  • call a proc from c
    ... is it possible to launch a tcl procedure containing tk command ... proc fire { ...
    (comp.lang.tcl)
  • dont pour thereby while youre treating below a medical bucket
    ... green for Bill to accumulate it. ... The launch at times the redundant ... creates along with our command after we designate on to it. ... Both producing now, Donovan and Murad dictated the supposed ...
    (sci.crypt)
  • Re: How Necessary is an Agent?
    ... writing or to writing in general. ... She threw it on the fire, and, even ... Duinn I command The Morrigan. ... woman's voice, but deep and guttural. ...
    (rec.arts.sf.composition)
  • Re: Anyone ever convert a manual plunger to an auto launch?
    ... One downside is that you'd be able to fire the autolauncher in game over mode unless you wire it into the flipper relay, and then you'd have to make sure the software cleared the balls out of the shooter lane if you happen to tilt. ... If it were a coil with a secondary hold winding, ... You could put an in line fuse in the circuit, but you may end up changing fuses more often than you like. ... Another option may be to go with the auto launch mechanism that GTB used on Freddy, Stargate, and possibly others. ...
    (rec.games.pinball)
  • Re: CREATEPROCESS and other questions...
    ... There is an intrinsic (HPCICOMMAND) that will let you stream a job ... or do just about any other MPE command from within your program. ... name of the executable you wish to launch, ... To join/leave the list, search archives, change list settings, * ...
    (comp.sys.hp.mpe)