MR Michael Robellard (5314) schrieb: > > Thomas, > > Here is the script and the parts of the idl file that are relevant for > the problem. >
Mike, I have changed the code you sent me so that I can try it (it is attached). Removed unneeded imports, adapted the logging, and so on. Called 'python lilwsearch.py /regserver' to register the server. Then, I added this value to the registry: Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\URLSearchHooks] "{0BC6E3FA-78EF-4886-842C-5A1258C4455A}"="" Hope that's the correct registry entry. Fired up Internet Explorer (version 7, but I've also tried version 6 on another machine). Entered something like "foo bar" in the address field and pressed enter. According to the log file, the search object is created. But: I see only a QueryInterface call for IURLSearchHook, not for IURLSearchHook2. And nothing more. It seems IE also hangs (well it works, I can browse in internet, but closing the GUI does not end the process). Do you get more in the log-file? Did I do the registry entries correctly? Which comtypes and Python version do you use? Here is what I see: DEBUG:comtypes.server.inprocserver:Found class <class 'lilwsearchhook.LILWSearchHook'> DEBUG:comtypes._comobject:<comtypes.server.inprocserver.ClassFactory object at 0x066DBD50>.QueryInterface({00000001-0000-0000-C000-000000000046}) -> S_OK DEBUG:comtypes._comobject:1 active COM objects: Added <comtypes.server.inprocserver.ClassFactory object at 0x066DBD50> DEBUG:comtypes._comobject:<comtypes.server.inprocserver.ClassFactory object at 0x066DBD50>.AddRef() -> 1 DEBUG:comtypes.server.inprocserver:DllGetClassObject() -> 0 DEBUG:comtypes.server.inprocserver:ClassFactory.CreateInstance({AC60F6A0-0FD9-11D0-99CB-00C04FD64497}) DEBUG:comtypes._comobject:<lilwsearchhook.LILWSearchHook object at 0x06795150>: IURLSearchHook.Translate not implemented DEBUG:comtypes._comobject:<lilwsearchhook.LILWSearchHook object at 0x06795150>.QueryInterface({AC60F6A0-0FD9-11D0-99CB-00C04FD64497}) -> S_OK DEBUG:comtypes._comobject:2 active COM objects: Added <lilwsearchhook.LILWSearchHook object at 0x06795150> DEBUG:comtypes._comobject:<lilwsearchhook.LILWSearchHook object at 0x06795150>.AddRef() -> 1 DEBUG:comtypes.server.inprocserver:CreateInstance() -> 0 DEBUG:comtypes._comobject:<lilwsearchhook.LILWSearchHook object at 0x06795150>.AddRef() -> 2 DEBUG:comtypes._comobject:<lilwsearchhook.LILWSearchHook object at 0x06795150>.Release() -> 1 DEBUG:comtypes._comobject:<comtypes.server.inprocserver.ClassFactory object at 0x066DBD50>.Release() -> 0 DEBUG:comtypes._comobject:1 active COM objects: Removed <comtypes.server.inprocserver.ClassFactory object at 0x066DBD50> DEBUG:comtypes._comobject:<lilwsearchhook.LILWSearchHook object at 0x06795150>.QueryInterface({AC60F6A0-0FD9-11D0-99CB-00C04FD64497}) -> S_OK DEBUG:comtypes._comobject:<lilwsearchhook.LILWSearchHook object at 0x06795150>.AddRef() -> 2 DEBUG:comtypes._comobject:<lilwsearchhook.LILWSearchHook object at 0x06795150>.Release() -> 1 Since I apparently cannot debug this myself for whatever reasons, see the other post for suggestions. Thanks, Thomas
lilwsearchhook.py
Description: application/python
------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________ comtypes-users mailing list comtypes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/comtypes-users