- 516 名前:デフォルトの名無しさん mailto:sage [2008/01/27(日) 07:26:38 ]
- C++でWindowsでのDLL作成に関して質問です。
C++のクラスをエクスポートする場合、純粋仮想クラスを利用するようですが、この際、 多重継承は可能なのでしょうか。具体的には以下のようなことをしたいのです。 class IFoo{ public: virtual void fooFunc() = 0; }; class IBar: public IFoo{ public: virtual void barFunc() = 0; } class CFooFunc{ public: virtual void fooFunc(){ /*...*/ } }; class CBarFunc{ public: virtual void barFunc(){ /*...*/ } }; class CExport: public IBar, CFooFunc, CBarFunc{ }; __declspec(dllexport) IBar* createIBar(){ return new CExport(); } __declspec(dllexport) IBar* deleteIBar( IBar* p ){ delete p; }
|

|