Thread: SHAutoComplete/COM Problems

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Nov 2006
    Posts
    12

    SHAutoComplete/COM Problems

    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]
    Last edited by Ehtyar; 06-02-2007 at 07:21 PM. Reason: Addition.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. No clue how to make a code to solve problems!
    By ctnzn in forum C Programming
    Replies: 8
    Last Post: 10-16-2008, 02:59 AM
  2. C Pointers Problems
    By mhelal in forum C Programming
    Replies: 8
    Last Post: 01-10-2007, 06:35 AM
  3. String Manipulation problems -_-
    By Astra in forum C Programming
    Replies: 5
    Last Post: 12-13-2006, 05:48 PM
  4. contest problems on my site
    By DavidP in forum Contests Board
    Replies: 4
    Last Post: 01-10-2004, 09:19 PM
  5. DJGPP problems
    By stormswift in forum C Programming
    Replies: 2
    Last Post: 02-26-2002, 04:35 PM