Re: How to load a dll (dynamic link library) in Tcl?



mike.hfzhang@xxxxxxxxx schrieb:
Hi there, I would like to use TCL to load a dll file which contains
some special TCL function, but I dont have any clues on how to do
that, any one can let me know the way for that? thanks,

Mike

If the dll has the appropriate Init function you can simply use the
standard Tcl [load] command to load it, if it lacks the typical Tcl
extension Init function you either add it or use something like ffidl to
call it directly.

Michael
.



Relevant Pages

  • Re: newbie question : How to use my nice shared library
    ... I'm new to Tcl and I want to create a C shared library. ... something easy I tried to do a lib containing only an echo function. ... Tcl's [load] enforces a certain case for the Init routine name. ... but the tcl interpreter still tells me the same ...
    (comp.lang.tcl)
  • Re: newbie question : How to use my nice shared library
    ... I'm new to Tcl and I want to create a C shared library. ... I'm getting crazy>< - How to convince this interpreter to do something ... Tcl's [load] enforces a certain case for the Init routine name. ... Without the first 3 -D Tcl_StatBuf will be a different size in Linux, ...
    (comp.lang.tcl)
  • Re: newbie question : How to use my nice shared library
    ... George Peter Staplin a écrit: ... I tried to run a tcl interpreter and type in "load malib". ...
    (comp.lang.tcl)
  • Re: finding tk version in Matrix 10.6
    ... But in a normal Tcl shell you would use 'package require Tk' to load ... If you simply want to use load and its the same command as in a normal ... can't invoke "winfo" command: application has been destroyed ...
    (comp.lang.tcl)
  • Re: newbie question : How to use my nice shared library
    ... George Peter Staplin a écrit: ... I tried to run a tcl interpreter and type in "load malib". ... I'm getting crazy>< - How to convince this interpreter to do something useful instead of displaying stupid error messages? ...
    (comp.lang.tcl)