Using a tcl interpreter inside a DLL?



Hello,

I have some experience with Tcl/Tk and Linux but now I have to move
to
developing under Windows.

I have an application that can load DLLs and execute code from them
(the functions in the DLL are seen as macros that augment the
functionality
of the application).

With what I have to do at the moment, I need to write a DLL in which
the
user has to interact with the application through custom dialogs.

I don't know anything about designing GUIs under Windows (except via
Tcl/Tk) and I was wondering if it would be possible to call the tcl
(or later
tk) interpreter from inside a DLL.

I tried to reuse some Linux based code where I use tcl/tk from inside
a
C program that dynamically creates tcl code that gets interpreted by
the
interpreter (!) but I can't go past the Tcl_Init() step without
crashing my
application.

So my question is: I know you can call a tcl interpreter from a
standalone
C program but is it possible to do it (or do something similar) from a
DLL?

Thanks in advance for your help.

Best Regards,
-JMB
.



Relevant Pages

  • Embeding Tcl/TK inside C++
    ... -create a dll that contains the tcl/tk and an accessor C ... -Tcl/Tk gets started and parses a config file ... Tcl/Tk is needed, the dll gets loaded otherwise the application remains ...
    (comp.lang.tcl)
  • Re: communication/pipeline between dll and Tcl
    ... > I have a GUI with Tk and I'd like to execute image processing ... > functions programmed in a C dll and to update some widgets depending ... > Could someone give me a simple example to use this with Tcl/tk and a C ...
    (comp.lang.tcl)
  • Re: PC2PC and PC2Phone
    ... The Ffidl and DLL have some restrictions on which the DLL should have ... but for ready MS developed lib I ... I am wishing that tkabber or any tcl/tk Jabber client adopt open source ... VOIP features. ...
    (comp.lang.tcl)
  • Re: PC2PC and PC2Phone
    ... The Ffidl and DLL have some restrictions on which the DLL should have ... I am wishing that tkabber or any tcl/tk Jabber client adopt open source ... VOIP features. ...
    (comp.lang.tcl)
  • communication/pipeline between dll and Tcl
    ... I have a GUI with Tk and I'd like to execute image processing ... functions programmed in a C dll and to update some widgets depending ... Could someone give me a simple example to use this with Tcl/tk and a C ...
    (comp.lang.tcl)