Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Extensibility / October 2004

Tip: Looking for answers? Try searching our database.

Component Selector Dialog - Browse Filters Param

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Shanmugam - 20 Oct 2004 06:59 GMT
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);

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.