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