-
June 1st, 2001, 06:31 AM
#1
[VC++,COM] Do VB "Implements" in VC++
Hi,
I want to create a COM DLL who implements the interfaces defined in
another COM dll (type library) where the interfaces are not implemented.
That's exactly what VB can do with "Implements".
But i should do it in VC++, how can i do it?
I watn to do like this:
1) Create MFC dll project with Automation, include COM dll Type library
in "Object/Library modules".
2) in MyClass.h:
DECLARE_INTERFACE_MAP();
BEGIN_INTERFACE_PART(MyNestedClass,IMyInterface)
STDMETHOD(..);
STDMETHOD(..);
END_INTERFACE_PART(MyNestedClass)
3) in MyClass.cpp:
BEGIN_INTERFACE_MAP(MyClass,CCmdTarget)
INTERFACE_PART(MyClass,IID_IMyInterface,MyNestedClass);
END_INTERFACE_MAP()
Is that ok?
Thanks,
Ruotao
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|