void SearchThread::search() { if (!module) { std::cout << "Return." << std::endl; return; } ListKey scopeList = VerseKey().ParseVerseList("Luke;John;Revelation","", true); for (int i=0; i < scopeList.Count(); ++i) { std::cout << (const char*)*scopeList.GetElement(i) << std::endl; } SWKey* scope = &scopeList; searchResult = module->Search(searchedText, -2, REG_ICASE, scope, 0, &percentUpdate); if (!scope) std::cout << "bad scope!" << std::endl; isSearching = false; }