// // pbag.h // #pragma once #include extern CComModule _Module; #include #pragma warning (disable : 4786) #include #include using namespace std; #include "tunk.h" class CPropBag : public TUnknown { public: CPropBag() : TUnknown (IID_IPropertyBag) {}; STDMETHOD(Read)(LPCOLESTR pszPropName,VARIANT* pVar, IErrorLog* pErrorLog); STDMETHOD(Write)(LPCOLESTR pszPropName, VARIANT* pVar); protected: typedef map BAGMAP; BAGMAP m_map; };