12345678910111213141516171819202122
class B1:public CBaseVideoRenderer { B1(LPUNKNOWN pUnk, HRESULT *phr):CBaseVideoRenderer(__uuidof(CLSID_TextureRenderer), "Name", NULL, phr) { } ... } class C1 { public: B1* b1; C1() {} void void1() { HRESULT hr; ... b1 = new B1(NULL,&hr); } }