Solved

Implementing a COM interface (IObjectWithSite)

Posted on 1998-08-13
1
221 Views
Last Modified: 2010-04-30
null
0
Comment
Question by:madiver
1 Comment
 

Accepted Solution

by:
Benoit081498 earned 200 total points
ID: 1468721
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now