TOC PREV NEXT INDEX

 


Providing Your Own Main Program


If you are providing your own main program routine and embedding Tcl into your application, then you are probably using Tcl_Main or Tk_Main to initialize Tcl or Tk. You can easily adapt your main program so it works with TclPro Wrapper simply by calling TclPro_Init before you call Tcl_Main or Tk_Main. If you are calling the lower level Tcl_CreateInterp API directly, then you still just need to call TclPro_Init before you call any other Tcl APIs.

The Pro_WrapTclMain and Pro_WrapTkMain APIs are just 2-line functions that call TclPro_Init before calling Tcl_Main or Tk_Main. These APIs remain for compatibility with previous releases of TclPro.




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