[sword-devel] Learning the Sword API

Tim Hawes sword-devel@crosswire.org
Mon, 05 Feb 2001 20:23:22 -0500


--------------81534D96D49872366A75273A
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Thanks! That worked.

Joachim Ansorg wrote:

> 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.

--
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

  Tim Hawes

     ***Althusius.net***
      http://Althusius.net

          thawes@althusius.net

---------------------------------------------------------
 Toleration is an inner personal disposition, is a
fundamental requirement of being human and of living
together in society . . .When toleration becomes
indifference, it is ruined.                -Van Ruler



--------------81534D96D49872366A75273A
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Thanks! That worked.
<p>Joachim Ansorg wrote:
<blockquote TYPE=CITE>Hi!
<p>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cout &lt;&lt; module->Type() &lt;&lt;
endl
<br>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;&lt; module->Name() &lt;&lt; ": "
<br>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;&lt; (const char *) module &lt;&lt; endl;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
^^^^^^
<br>I think (const char*)*module should be the right cast to get the text.
In
<br>your code you are using the (const char*) operator of the pointer.
<br>No tested.
<p>--Joachim
<p>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return 0;
<br>>&nbsp;&nbsp;&nbsp; }
<br>>
<br>> Can anyone tell me why this does not display the key contents? Also,
is
<br>> there a way to find a particular module without having to cycle through
<br>> the entire ModMap to find it (I am green around the ears in C++)?
<br>>
<br>> --
<br>> \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
<br>>
<br>>&nbsp;&nbsp; Tim Hawes
<br>>
<br>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ***Althusius.net***
<br>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://Althusius.net">http://Althusius.net</a>
<br>>
<br>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; thawes@althusius.net
<br>>
<br>> ---------------------------------------------------------
<p>----------------------------------------
<br>Content-Type: text/html; charset="us-ascii"; name="Anhang: 1"
<br>Content-Transfer-Encoding: 7bit
<br>Content-Description:
<br>----------------------------------------
<p>--
<br>Joachim Ansorg
<br>BibleTime - www.bibletime.de - info@bibletime.de
<br>BibleTime is an easy to use Bible study tool for KDE / Linux.</blockquote>

<pre>--&nbsp;
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

&nbsp; Tim Hawes

&nbsp;&nbsp;&nbsp;&nbsp; ***Althusius.net***
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <A HREF="http://Althusius.net">http://Althusius.net</A>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; thawes@althusius.net

---------------------------------------------------------
&nbsp;Toleration is an inner personal disposition, is a
fundamental requirement of being human and of living
together in society . . .When toleration becomes
indifference, it is ruined.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -Van Ruler</pre>
&nbsp;</html>

--------------81534D96D49872366A75273A--