Pointer to a class / template class
| tmcristi (1) | |||||
| Hello everybody I have a problem. I am doing a plugin using ATL. I have a main class named CMyPlugin. This class has the main dialog. In the main dialog i am creating a PropertySheet in the form of 2 classes:
class CPropView : public CPropertySheetImpl<CPropView> and
the first class is the sheet and the second is for the pages. I can successfully instantiate the CPropPage by
CPropPage<IDD_DEMODLG> m_page0 ;I want to gain access to CMyPlugin since this is the place where i have some important methods and where some of the main UI controls are. How can i gain access to CMyPlugin from CPropPage or CPropView? Also if i use:
CMyPlugin* ptr inside the CPropPage i get this error :
| |||||
This topic is archived - New replies not allowed.
