RE: wrapping wxWindows
jbrown1050 at hotpop.com wrote:
> I was hoping that I could make a C library, not a C++ library.
>
> Perhaps if I did a 2-step triple C wrap.
>
> wxWindows -> wrapped in plain C, exported as a C++ library.
> C++ wrapper lib -> wrapped again in plain C, but exported as a normal C
> lib this time.
> C wrapper lib -> wraps cleanly in Euphoria.
I "think" the easiest path is to write a C++ library (since wxWindows
is written in C++) but create the "wrapped" routines in a "C friendly"
way (by using extern C{...} ).
A library such as this wrapped in a DLL looks just like a C DLL
(and I assume the same for shared libraries on *nix).
This is the approach I was using for FLTK and FOX and it seemed to
work fine.
Regards,
Ray Smith
http://rays-web.com
|
Not Categorized, Please Help
|
|