# 將tcl嵌入紅寶石中

## 最佳答案

• Tcl_FindExecutable – Call this first to initialize the library
• Tcl_CreateInterp – This returns a handle for a new execution context
• Tcl_Eval – This evaluates a script; returns constants TCL_OK (0) or TCL_ERROR (1) (or a few others which are rare in general code)
• Tcl_GetResult – This returns the result value (or error message)
• Tcl_ResetResult – This clears the result value
• Tcl_DeleteInterp – Maybe you can guess what this does…