This section describes a light weight class library for creating
Tcl/Tk applications. [1] It consists of a header file
tcl++.h
, and a main program tclmain.cc
. All you need to
do to create a Tcl/Tk application is write any application specific
Tcl commands using the NEWCMD macro, link your code with the
tclmain
code, and then proceed to write the rest of your
application as a Tcl script. The tclmain
code uses argv[1] to
get the name of a script to execute, so assuming that the executable
image part of your application is called appl.exe
, you would
start off your application script with
#!appl.exe ...Your Tcl/Tk code goes here...then you script becomes the application, directly launchable from the shell.