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

Re: file TCL->C++



Yes you can. But you have to convert a tcl file descriptor to a
Tcl_Channel. See a tcl book for detail, or see the
handling of "attach" in Trace::command() in trace.cc.

- Haobo

On Thu, 29 Jul 1999, Massimo Pegorer - stage wrote:

> Is it possible to open a file in tcl script and pass it to a C++ object?
> If yes, how? Thanks for help.
> 
> // C++ code
> ...
> FILE* pf
> ...
> 
> 
> # TCL code
> ...
> set f [open file w]
> ...
> 
> Max.
> 
> -- 
> Massimo Pegorer, studente
> Dipartimento di Elettronica e Informatica
> Universita' degli Studi di Padova
> Padova - ITALIA
>