Re: [ns] Accessing object created in Tcl from C++

2006-08-21 Thread Prashant Batra
Hi Vijay, The problem described by you seems to be something very specific to your codei mean to the modifications you have doneso it is really not possible for me to tell you anything straightforward on the matter. I am sure if you take a deeper look into your code and try and underst

Re: [ns] Accessing object created in Tcl from C++

2006-08-18 Thread Prashant Batra
Hi Shafiq, To access a variable declared in your TCL script, you can use the following method :- Tcl& tcl = Tcl::instance(); tcl.lookup(char* s); The 'lookup()' function of Tcl class takes a pointer to the name of the variable in the TCL script and returns you a TclObject class object, which

[ns] Accessing object created in Tcl from C++

2006-08-17 Thread Shafiq Hashmi
Hello all, Is it possible to access an object of Agent/RCAgent, created in Tcl, from another C++ class. Can anybody tell me ? Thanx Shafiq