How to pass an argument from tcl to c++?
method 1: bind the variables you want to share
method 2: For example:
Tcl& tcl = Tcl::instance();
tcl.eval("$cbr set packet_size_");
char* var_temp = tcl.result();
Found here: http://web.syr.edu/~dchen02/FAQ.txt
http://web.syr.edu/~dchen02/FAQ.txt
-
Where do you call the C program?
I can't understand if you have to call a C program from a tcl script or get
a variable from a tcl script in a C program...
-max- wrote:
>
>
> Hello
>
> How can i get the value of a tcl variable since mi code in C???
>
> For example
>
> if i need to use the v
Hello
How can i get the value of a tcl variable since mi code in C???
For example
if i need to use the variable val(nn) in my code, so
if(val(nn) == 3)
{
something
}
how can i do it.
Thanks