Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

calling Tcl proc from C - a mystery?

Status
Not open for further replies.

mrwinusa

Programmer
Aug 8, 2002
4
0
0
US
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!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top