I'm new to Tcl/Tk in general, and am just testing it out to see if it would fulfil my needs for building a GUI for my Fortran code before I jump into learning Tcl/Tk properly. After some research, I came across Gustav Ivanovic's code, which seems like exactly the sort of thing I was looking for: http://wiki.tcl.tk/13265
I particularly like the idea of loading DLLs, since I already load DLLs using MS Excel as a front-end, so required rework on the Fortran side would be minimal.
However, when I try to run Gustav's example (just using the Windows APIs, i.e. with the FtnTcl.dll bits commented out), I get an error:
can't read "x": no such variable
"llength $x" invoked from within...
I'm using binaries obtained from these locations:
- tclkit-8.5.9-win32.upx.exe from http://code.google.com/p/tclkit/downloads/list
- Ffidl06 from http://elf.org/ffidl/
I tried contacting Gustav at the provided email address, but the email bounced, and I don't know how else to get in touch with him.
I just had to update his code to say "load ffidl06" instead of "load ffidl05", due to the newer version of Ffidl at the link above. However, I realise that Gustav's code was written a decade ago, and things within Tcl and Ffidl are likely to have changed since then, which is probably what's causing the error. It's also entirely possible that there's something basic I'm not doing properly, so please let me know if I can provide any other relevant information.
I would greatly appreciate any help this newsgroup might be able to provide.