EnvDTE::Document.Open returns null
ATL / WTL / STL
1
Posts
1
Posters
0
Views
1
Watching
-
hi, im trying to open a document from the documents list but it always returns null. this is my code:
// Find .dsp file name m_ActiveProject->get_FullName(&l_ProjectName); // Open .dsp file as text document CComPtr l_pDocuments; m_pDTE->get_Documents(&l_pDocuments); CComPtr l_pDocument; l_pDocuments->Open(l_ProjectName,L"Text",false,&l_pDocument);
am i doing something wrong?