Generating a Proxy/Stub DLL for an interface, the sane way
Note: This article applies to Visual C++ 6. There might be an easier way to do this in Visual Studio .NET
Note: This article applies to Visual C++ 6. There might be an easier way to do this in Visual Studio .NET
The best way I’ve found to do this is to enumerate the HKCR\Interface registry key and query your object to see which ones it supports.
I just came across a problem where IEnumFoo::Next was returningRPC_X_NULL_REF_POINTER. Of course, the first thing that I did wasundertake a search in MSDN, and with Google to see if I could find anyexplanation of what the problem is.
The problem here is that you have a piece of IDL like this, where you want to be able to specify the IID of the returned interface.