I think you need to do something like sword::SWKey* key = module->getKey(); // or module->createKey(); if you rather for(key = sword::TOP
At least, I think that's what it needs... --Greg On Tue, Feb 23, 2021 at 12:01 PM David "Judah's Shadow" Blue < yudahssha...@gmx.com> wrote: > I'm wanting to iterate through each key in a given module (bible, > commentary, > lexdict). I tried > > ... > sword::SWModule *module; > module = this->swordLibrary.getModule(this->selectedModule.c_str()); > for(module = sword::TOP; !module->Error(); module++) > ... > > and I get "error: invalid user-defined conversion from > ‘sword::SW_POSITION’ to > ‘sword::SWModule*" on building. So I'm wondering what the best way to go > through each entry in a module. > > > _______________________________________________ > sword-devel mailing list: sword-devel@crosswire.org > http://crosswire.org/mailman/listinfo/sword-devel > Instructions to unsubscribe/change your settings at above page
_______________________________________________ sword-devel mailing list: sword-devel@crosswire.org http://crosswire.org/mailman/listinfo/sword-devel Instructions to unsubscribe/change your settings at above page