Hi all.
I've been having trouble for the past few days trying to get SHAutoComplete to work in my program. Basically, I've implemented it dynamically (LoadLibrary/GetProcAddress) but when my app reaches the end, two threads (i presume created by the two calls to SHAutoComplete) remain active and my app never exits. Here is my code for COM and SHAutoComplete. If i remove this code, the app terminates when expected and I've also tried initializing COM as multithreaded (CoInitializeEx) which failed entirely. If anyone could take a look at it and see what I'm missing I would really appreciate it.
Thanks in advance, Ehtyar.
[edit]
I've also tried moving the calls to Co(Un)Initialize to the inside of the calls to LoadLibrary/FreeLibrary with no success.
[/edit]