What is value or format of value that should be specified in pszBrowseFilters
param of IVsComponentSelectorDlg's ComponentSelectorDlg method?
The value specified in the code snippet below seems to be incorrect parameter.
However, this code works when VSCOMSEL_HideBrowseButton is specified, which
ofcourse ignores the param.
Thanks and Regards,
Shan
Code Snippet:-
static CComBSTR bstrLocation;
CString strFilter(_T("All Files (*.*)\n*.*\n"));
LPCOLESTR pszBrowseFilters = T2COLE(strFilter);
VSCOMPSELFLAGS grfFlags;
grfFlags = VSCOMSEL_MultiSelectMode
| VSCOMSEL_ShowOnlySpecifiedTab
//| VSCOMSEL_HideBrowseButton;
| VSCOMSEL_IgnoreMachineName;
hr = srpAddReferenceDlg->ComponentSelectorDlg(
grfFlags,
m_pCMyProjectHierarchy,
NULL, /*lpszDlgTitle */
NULL, /*lpszHelpTopic*/
GUID_COMPlusPage, /*rguidShowOnlyThisTab*/
GUID_NULL, /*rguidStartOnThisTab*/
NULL, /*pszMachineName*/
0, /*cTabInitializers*/
NULL,/*prgcstiTabInitializers*/
pszBrowseFilters,/*pszBrowseFilters*/
&bstrLocation);
Shanmugam - 20 Oct 2004 11:03 GMT
It was resolved by passing “xxxx” to pbstrBrowseLocation (ie. bstrLocation)
parameter
Strange and weird, but still works!
> What is value or format of value that should be specified in pszBrowseFilters
> param of IVsComponentSelectorDlg's ComponentSelectorDlg method?
[quoted text clipped - 31 lines]
> pszBrowseFilters,/*pszBrowseFilters*/
> &bstrLocation);