Is CWebWindow your window class? If so, you need to have that class inherit the required interfaces (IOleClientSite, etc), and the you need to implement all the the methods for those classes. I have found that you don't necessarily need to implement all of the methods (although they must all be present). What I have done in the past is put in each method and have it return E_NOTIMPL. Then I put breakpoints in and figured out which methods were called, and implemented those. I don't remember it being that difficult, but I do recall that there were some gotchas.