Prev: How to change the font and font size in ttk::button (themed widgets)?
Next: package require - couldn't load library ..... error
From: Volker Hetzer on 18 Mar 2010 08:51 Hi people! I'm once again trying to get Tcl to be used in .NET. So far I've tried two approaches: - tcl84.dll and P/Invoke. I got as far as letting Tcl evaluate simple commands but produced a memory protection erro as soon as I wanted to open a file in Tcl. Has anyone encountered or solved this? -Eagle: I just downloaded it, it runs but I'm clueless as to how to use it for C#. I've referenced the dll but somehow I don't see any way to use it. I tried to create an Eagle._Components.Public.Interpreter but the constructor demands an Eagle._Components.Public.Result object which has no public constructor. Has anyone figured out either of those two ways to integrate tcl in a ..net enwironment? What I'm looking for in the best case is something like (C#): TclInterpreter X=new TclInterpreter(); X.Events+=myEventhandler; Console.WriteLine(X.eval("read -nonewline [open c:\\temp\\x.txt]")); and so on. Lots of Greetings! Volker
From: Volker Hetzer on 18 Mar 2010 10:03
Am 18.03.2010 13:51, schrieb Volker Hetzer: > Hi people! > I'm once again trying to get Tcl to be used in .NET. > So far I've tried two approaches: > - tcl84.dll and P/Invoke. I got as far as letting Tcl evaluate simple > commands but produced a memory protection erro as soon as I wanted to > open a file in Tcl. Has anyone encountered or solved this? Got thta one solved. A PatrickSurname(a)xxxx had a similar problem back in 2006. The trick was to set TCL_LIBRARY in the code preceding the Tcl_CreateInterp. Still, I'd like to give eagle a shot, it looks promising. Lots of Greetings! Volker |