Skip to main content


Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: library_meta_autocomplete not working (Read 968 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

library_meta_autocomplete not working


Arash here, I'm trying to upgrade TagBox to use the new SDK and be foobar2000 v2 ready. After tweaking things everything seems to be working, except this piece of code:
Code: [Select]
pfc::com_ptr_t<IUnknown> src;
static_api_ptr_t<library_meta_autocomplete> lac;
const char* fieldId =;
if(lac->get_value_list(fieldId, src)) {
CComPtr<IEnumString> e;

if( src->QueryInterface(__uuidof(IEnumString), (void**)&e) == S_OK ) {
static const size_t blockSize = 100;
LPOLESTR s[blockSize];
ULONG cnt;
do {
e->Next(blockSize, s, &cnt);
for(size_t j = 0; j < cnt; ++j) {
} while(cnt == blockSize);
lac->get_value_list() always returns false no matter what fieldId is. tried library_meta_autocomplete_v2, lac->get_value_list_async() returns true but cnt is always zero. This worked without a problem with the older sdk, an I doing something wrong or is this a bug?

I'm using SDK-2022-08-10

Thanks in advance