Borland Stub Libraries for Tcl/Tk 8.2.x
The current binary release of Tcl/Tk (8.2.0 and later) available from Scriptics supports the stub interface to the Tcl/Tk API. Using the stub interface for the development of extensions isolates the development process for the extension from the evolving contents of the Tcl/Tk releases, allowing the development of extension packages that are useable independant of the development environment used to build them.
Instead of linking an extension against an import library for the Tcl/Tk API, the extension is linked against a static library that provides a mapping between Tcl/Tk API calls and the Tcl/Tk release DLLs or shared libraries. Aside from any required platform related initialization (i.e DllMain under Windows), the extension code should be platform independant if it uses the stub interface.
The Tcl/Tk 8.2.0 and more recent releases from Scriptics are shipped with stub libraries for use with Windows that have been compiled with the Microsoft VC++ development tools. These libraries are not useable with the Borland C++ tools, at least, not the BC++ 4.5 tools I use.
The archive bcstub82.zip available on this site contains 2 files, tcstbc82.lib and tkstbc82.lib, which are the Tcl and Tk stub libraries built with Borland tools. If you are a Borland user, you can statically link your extension with these libraries instead of the import libraries derived from tcl82.dll and tk82.dll. Your extension will then work immediately under the Scriptics binary release.
I have tested these libraries under Tcl/Tk 8.2.0 and Tcl/Tk 8..2.1 and 8.3.0 running on Windows 95/98/NT. Implemented using these stub libraries you can find my own DDE 2.0 extension and an extension that implements the Tix 4.1 release elsewhere on this site.
License
Free for non-commercial use. Redistribution for non-commercial use is permitted. Resale prohibited.
Warranty
None. This software is provided as is, without any warranty as to merchantability or suitability of use for any purpose. Use at your own risk.
Email : customclients@videotron.ca