[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ns] creation of instance from c++



something like this:

  Tcl &tcl=Tcl::instance();
  tcl.evalc("set udp_ [new Agent/Udp]");
  agent_ = (UdpAgent *) TclObject::lookup(tcl.result());


Sencun


On Fri, 15 Jun 2001, Oliver Dawid wrote:

> hi there,
> 
> until now, i created my objects from within the tcl-script. but in some
> cases it would be much easier to create these objects from c++. how can i
> do that? will i have to call tcl.eval for this action? and how do i get
> back the object identifier?
> 
> thanks a lot,
> 
> od
> 
>