[sword-devel] Learning the Sword API

Joachim Ansorg sword-devel@crosswire.org
Mon, 5 Feb 2001 13:23:37 +0100


Hi!

>       cout << module->Type() << endl
>            << module->Name() << ": "
>            << (const char *) module << endl;
			^^^^^^
I think (const char*)*module should be the right cast to get the text. In 
your code you are using the (const char*) operator of the pointer.
No tested.

--Joachim

>       return 0;
>    }
>
> Can anyone tell me why this does not display the key contents? Also, is
> there a way to find a particular module without having to cycle through
> the entire ModMap to find it (I am green around the ears in C++)?
>
> --
> \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
>
>   Tim Hawes
>
>      ***Althusius.net***
>       http://Althusius.net
>
>           thawes@althusius.net
>
> ---------------------------------------------------------

----------------------------------------
Content-Type: text/html; charset="us-ascii"; name="Anhang: 1"
Content-Transfer-Encoding: 7bit
Content-Description: 
----------------------------------------

-- 
Joachim Ansorg
BibleTime - www.bibletime.de - info@bibletime.de
BibleTime is an easy to use Bible study tool for KDE / Linux.