Monday, June 29, 2009

Browser Helper Objects

Getting back in shape. Let's hope it does not take long: I do not seem to have much time at my disposal these days. Developing COM components with ATL has its specifics. Especially true when dealing with the multiple IDispatch implementations, connection points, Disp events, etc. For instance, today I had hard time figuring why document events were not sinking. During the advise call it was all fine: S_OK every single time. It took both ATL source digging and debugging just to find out IDispEventImpl requires the MSHTML type library major/minor version exactly as in the registry. If this does not hold, no event ever makes it into the callback. Other people were having the same problem, but none of the top Google results contained the solution. Posted it as a reply here: http://tinyurl.com/l4krht. Hope it helps others avoid unneeded debugging effort. Cheers!

No comments:

Post a Comment