TOC PREV NEXT INDEX

 


The Application Initialization API


Tcl_Main and Tk_Main take a callback procedure that completes the initialization of the Tcl interpreter. This is where you can add your own Tcl commands or initialize other Tcl extensions you want to include in your application.

The src/tclpro1.4/sampleAppInit.c file shows the application initialization procedure for the TclPro wrapper shells. If you want to create a variation on the "bigwish" wrapper shell, for example, you can start with sampleAppInit.c and add more extension initialization calls to it. For the complete custom shell recipe, you will need the Tcl or Tk source distribution in order to use its tclAppInit.c or tkAppInit.c files that implement the main program.




http://www.ajubasolutions.com
Voice: (650) 210-0100
Fax: (650) 210-0101
support@ajubasolutions.com
TOC PREV NEXT INDEX