[sword-devel] Volunteer [num of chapters/verses]

Lynn Allan sword-devel@crosswire.org
Tue, 30 Dec 2003 16:04:37 -0700


>    1. Volunteer (Dennis Humphrey)
>    2. A Simple Semi-Urgent Request (Philip Alldredge)
> I am working on some software using C# and I've hit a roadblock because
> the C Api for SWORD Seems quite limiiting. Is there any way to use it to
> get teh number of chapters/verses and the current chapter and verse? If
> there isn't can someone please add a few simple API's to the library and
> upload the compiled DLL(windows). I would very much appreciate it. I've
> tried to get SWORD compiling on my PC but I've haven't had much success.
> Thank you
>
> -Philip


Hi Philip,

The "unofficial, experimental plug-in subset" class, CanonVersifier, has
calls for

USHORT _declspec(dllexport) CanonVersifier::GetMaxChapInBook(USHORT testmt,
USHORT bk)

USHORT _declspec(dllexport) CanonVersifier::GetMaxVerseInChap(USHORT testmt,
USHORT bk, USHORT chap)

You can look at the source code at:

http://umn.dl.sourceforge.net/sourceforge/lcdbible/LcdBible-src-0-90a.zip