Problem with GetFirstDocTemplatePosition function
Hi,
i'm developing a MDI application with two CMultiDocTemplate. In the View class of one of them, i want to access one of these CMultidocTemplate using this command:
CEVPlayerApp* pMain = (CEVPlayerApp*)AfxGetApp()->m_pMainWnd;
POSITION posTemplate = (POSITION)pMain->GetFirstDocTemplatePosition();
But when i run it, i've a dialog box saying that the memory canno't be read, even if i doesn't have compilation error.
Does anybody have an idea about it ?
Thanks in advance.
Your response will be rated.