Re: C++/TCL Need Solution to Compile Error c2784
- From: Christian Gollwitzer <Christian.Gollwitzer@xxxxxxxxxxxxxxx>
- Date: Fri, 13 Apr 2007 10:13:31 +0200
JesusChuyCampos@xxxxxxxxx wrote:
It always sucks when the
simple "hello world" program works, but the real thing breaks. I' will
be looking into SWIG, because just like CPPTCL, if the SDK changes
rebuilding the DLL will be a breeze. But if worse comes to worse, I
guess I will have to learn the TCL C API like you mention and get it
done.
SWIG does its job very well. For a first approximation, you can probably just pass the headerfile into it like
swig -tcl8 -c++ headerfile.h
If you want a crisp tclish interface, you can improve the interface by writing proxy classes. Also exotic types can be integrated quite easy by providing a so called "typemap". With the typemap you can change the way SWIG interfaces TCL and C for specific function arguments. So you have the full control, but don't need to repeat tedious work. The only disadvantage may be some performance lost in comparison with a fully handwritten glue code.
Christian
.
- Follow-Ups:
- Re: C++/TCL Need Solution to Compile Error c2784
- From: David Gravereaux
- Re: C++/TCL Need Solution to Compile Error c2784
- From: JesusChuyCampos
- Re: C++/TCL Need Solution to Compile Error c2784
- References:
- C++/TCL Need Solution to Compile Error c2784
- From: JesusChuyCampos
- Re: C++/TCL Need Solution to Compile Error c2784
- From: David Gravereaux
- Re: C++/TCL Need Solution to Compile Error c2784
- From: JesusChuyCampos
- C++/TCL Need Solution to Compile Error c2784
- Prev by Date: Re: array of lists
- Next by Date: Re: URGENT: Command argument parsing
- Previous by thread: Re: C++/TCL Need Solution to Compile Error c2784
- Next by thread: Re: C++/TCL Need Solution to Compile Error c2784
- Index(es):
Relevant Pages
|