logo       

How to convert “Swig Tcl Pointer” to “C++ Pointers” ?: msg#00138

programming.swig

Subject: How to convert “Swig Tcl Pointer” to “C++ Pointers” ?

Morteza Saheb Zamani writes:
> Hi,
> I have a C++ program in which several classes are
> defined. Swig converts my C++ classes into .so (shared
> object) file to be able to load them into Tcl.
>
> Now, I want to have a copy of the objects (created in
> Tcl) inside C++. Is there any way to convert the Tcl
> pointer (which is in the form of a string) into actual
> pointers usable in C++?
>

Yes, you just give it to any SWIG-wrapped function that takes a pointer.
What more are you looking for?

-- Dave
_______________________________________________
Swig maillist - Swig@xxxxxxxxxxxxxxx
http://mailman.cs.uchicago.edu/mailman/listinfo/swig



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise