VisPro  1.0
Project of Visualisierung 2
MyTkMain.h File Reference

Tcl/Tk integration file. On Windows, this file needs to be compiled twice, once with TK_ASCII_MAIN defined. This way both Tk_MainEx and Tk_MainExW can be implemented, sharing the same source code. More...

#include "tkInt.h"
#include <ctype.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>

Go to the source code of this file.

Functions

void My_Tk_MainEx (int argc, TCHAR **argv, Tcl_AppInitProc *appInitProc, Tcl_Interp *interp)
 
void My_TK_EndMainEx (Tcl_Interp *interp)
 

Detailed Description

Tcl/Tk integration file. On Windows, this file needs to be compiled twice, once with TK_ASCII_MAIN defined. This way both Tk_MainEx and Tk_MainExW can be implemented, sharing the same source code.

Function Documentation

void My_TK_EndMainEx ( Tcl_Interp *  interp)

Termination of main program of Tk-based application.

Parameters
interpused Tcl interpreter
void My_Tk_MainEx ( int  argc,
TCHAR **  argv,
Tcl_AppInitProc *  appInitProc,
Tcl_Interp *  interp 
)

Main program for Wish and most other Tk-based applications. Adaption is done to extract Tk-event loop into event-loop of own application.

Parameters
argcnumber of arguments
argvarray of argument strings
appInitProcapplication-specific initialization function to call after most initialization but before starting to execute commands
interpused Tcl interpreter