Viewing 0 reply threads
You must be logged in to reply to this topic.
Your question is not clear. If you read your question from another person’s point of view, you can certainly realize that.
1. If you want to print anything from a c++ file, then you can use just use “printf”
2. If you want to print anything from a tcl script, then you can use just use “puts”
3. If you want to pass arguments to a tcl script, then Tcl scripts have access to the following predefined variables. Just learn to use it inside the script.
$argc – number items of arguments passed to a script.
$argv – list of the arguments.
4. If you want to pass a value from c++ to tcl then you can use bind command in c++ file as follows.
bind (“myvar_”, &myvar_);
You can use the myvar inside your tcl script to pass a value to c++ code or access a c++ value from tcl script. (But it is not simple so Learn more about this to do this)
Anyhow, still, I don’t understand your question.
You must be logged in to reply to this topic.
Discuss Through WhatsApp