Calling a Tcl proc from C seems like a simple task, but I haven't found the trick that makes this work. Using Tcl_Eval seems logical but it hasn't worked for me. In fact, doing ret = Tcl_Eval(interp,"puts [info commands p*]"
; from C confirms that it does not see the proc named postinfo which is visible in Tcl.
This particular proc is simply:
proc postinfo {emessage} {
.pw.pane1.childsite.mb issue "$emessage" INFO
}
I'm new to Tcl but this seems like a very basic need - to communicate with the GUI from C. SUGGESTIONS DESPARATELY NEEDED!
This particular proc is simply:
proc postinfo {emessage} {
.pw.pane1.childsite.mb issue "$emessage" INFO
}
I'm new to Tcl but this seems like a very basic need - to communicate with the GUI from C. SUGGESTIONS DESPARATELY NEEDED!