[sword-devel] ztext file format...

Matthew Talbert ransom1982 at gmail.com
Wed May 19 17:44:17 MST 2010


On Wed, May 19, 2010 at 8:16 PM, Wade Balzer <wbalzer at newjerusalem.org> wrote:
>
> Thanks,
>
> From what I can tell, the "only" way to create the bindings in C# is to make
> a c++ managed code wrapper that will call the unmanaged libsword.dll.  That
> is basically doing all the heavy lifting that swig was doing for you, except
> that I could never get swig to compile.   I don't want to do that, otherwise
> I just as well try and get swig to work.

Again, the alternate way is to use a plain C API, and use P/Invoke
from C#. Of course, probably there would have to be some work done on
the C API to make it usable for anything more than just basic stuff.
In essence, this is what SWIG is doing, however, SWIG is trying to
wrap C++ and present an object-oriented interface, which is
substantially harder than a C interface. If you're interested at all
in this, I know enough about what's involved to at least give some
pointers.

Matthew



More information about the sword-devel mailing list