[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ns] Access Tcl Variable
Hi, everybody:
Does any one know how to access Tcl variable from C++ ?
I tried to use
Tcl_SetVar2(interp, "X", (char*) NULL, "value",0)
to assign "value" to a string variable named "X" in C++ program. This is
a Tcl libary function, and given in a book as a example. But it does not
work. X is a variable defined in the Tcl script, right?
I want to change the value of a Tcl variable from C++. Can anyone give me
some help?
Thanks.
Jianxue Huang