Pointer to a class / template class

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


1
2
3
template <WORD t_wDlgTemplateID> 
class CPropPage : public CPropertyPageImpl<CPropPage>,
		 public CWinDataExchange<CPropPage>


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 :
1
2
3
4
5
error C2027: use of undefined type 'CPropPage<t_wDlgTemplateID>::CMyPlugin'
        with
        [
            t_wDlgTemplateID=112
        ]
Topic archived. No new replies allowed.