Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

GetDirectoryViaBrowseDlg returns error code

$
0
0

CComPtr<IVsUIShell> spIVsUIShell = GetVsSiteCache().GetCachedService<IVsUIShell, SID_SVsUIShell>();
        VSBROWSEINFOW info[1];
        memset(info,0,sizeof(VSBROWSEINFOW));
        info[0].dwFlags = BIF_RETURNONLYFSDIRS | BIF_EDITBOX|BIF_USENEWUI;
        info[0].hwndOwner = GetParent().GetParent().GetHandle();
        info[0].lStructSize = sizeof(VSBROWSEINFOW);
        info[0].nMaxDirName= 1500;
        info[0].pwzInitialDir=L"";
        info[0].pwzDlgTitle= L"Browse to your top level directory which has to be synced";

        int l_errorCode = spIVsUIShell->GetDirectoryViaBrowseDlg(info);

        error code is: -2147024089

Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>