Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 230
  • Last Modified:

Implementing a COM interface (IObjectWithSite)

null
0
madiver
Asked:
madiver
1 Solution
 
Benoit081498Commented:
1st you HAVE to implement both methods, the one you are not interested in doesn't have to do anything (make it return a long instead of an HRESULT and just return E_NOTIMPL= &H80004001.
Now you already found the solution to your problem which is to replace the IUnknown pointer by a long, Internet Explorer definitely won't mind, it won't know the difference and it will just stuff the pointer in your long variable (they are the same anyway).  The problem would then be to use this pointer (long).  

0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now