[sword-devel] General Book Support

Daniel Glassey sword-devel@crosswire.org
Thu, 24 Jan 2002 16:10:27 -0000

I should've said earlier but I'll add my thanks to the chorus :)


P.S. Doesn't work for me on cygwin either. I think I might have traced the problem to these lines in 

	RawGenBook *book = new RawGenBook(argv[1]);
	TreeKeyIdx root = *(TreeKeyIdx *)(SWKey *)(*book);
	treeKey = (TreeKeyIdx *)(SWKey *)(*book);

	string input;
	char line[1024];

	do {
		cout << "[" << treeKey->getFullName() << "] > ";

afaict it is crashing on the getFullName.

	//TreeKeyIdx *root = *(TreeKeyIdx *)(SWKey *)(*book);
	TreeKeyIdx root = *((TreeKeyIdx *)((SWKey *)(*book)));

if I use brackets to explicitly do the cast it works, checking that in

P.P.S. (now it's working) Wow!

On 24 Jan 2002 at 15:09, Joachim Ansorg sent forth the message:

> Troy and Chris!
> You're awesome! Really good work! I'm sure this will help to spread Gods word 
> in the world!
> I'll test this now!
> Joachim

Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com