IShellFolder SelectItem
I need to select all jpeg files in a folder when user presses a keyboard button after selecting any one of the jpeg files. I used IFolderView::SelectItem to select files. I used IShellFolder::ParseDisplayName() function to get pidl of the candidate files which need to be selected. The
problem is that ParseDisplayName is always failing. HRESULT says it is
because "a null reference pointer is passed into the stub". I am
getting proper value in *psf. Please tell me why is it happening so?
problem is that ParseDisplayName is always failing. HRESULT says it is
because "a null reference pointer is passed into the stub". I am
getting proper value in *psf. Please tell me why is it happening so?
Code:
IShellFolder *psf;
if (SUCCEEDED(ppf2->QueryInterface
(IID_IShellFolder,(void**)&psf))) {
HRESULT hr = psf->ParseDisplayName(NULL,NULL,g_szPath,NULL,pidlSelected,NULL);
}
Regards,
J
Go here to read the rest:
IShellFolder SelectItem
Related posts:
- IShellFolder error. Hi Friends, I am getting an out of memory...
- Answer please, ishellfolder – new to c0m I'd like to use ishellfolder interface I have include...
- Answer please, ishellfolder – new to c0m I'd like to use ishellfolder interface I have include...
- Calling Javascript from ActiveX Hi all, I have a problem with an ActiveX...
- Querying ActiveX interface failing, why? I'm trying to embed a webbrowser in my wxWidgets...
Related posts brought to you by Yet Another Related Posts Plugin.
Aug
27
27