[prev in list] [next in list] [prev in thread] [next in thread] 

List:       visual-tcl
Subject:    [vtcl] Calling foreign functions from within Tcl/Tk
From:       matjaz.vencelj () fmf ! uni-lj ! si
Date:       1998-07-04 12:12:39
[Download RAW message or body]

Hi,

 > I would like to define a command on scriptlevel(GUI)
 > to bind it e.g. to a button and to invoke a function
 > out of the Smart Card-Library.

You can try using SWIG (http://www.cs.utah.edu/~beazley/SWIG/swig.html).
It's a free program which turns your .c code and .h declarations into a
C source, which you can than compile into a library. This library and
its functions can than be directly called from a Tcl script.
    I beleave it should even work with a precompiled foreign-party
library. Just write an appropriate declarations file and run it through
SWIG, than compile together all of the resulting code.

The documentation with SWIG is fine, just go to the above URL.

Have fun,
Matjaz

Slovenia
---------------------------------------------------------------------------
To unsubscribe from the Visual Tcl mailing list, please send a message
to majordomo@neuron.com with "unsubscribe vtcl you@your.address" in the
message body (where you@your.address is your e-mail address).

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic