JoDeGr8
2009-08-27 06:29:51 UTC
I am using IShellFolder::SelectItem to select multiple items from a
folder. The following is the code i am using to get things done. 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?
IShellFolder *psf;
if (SUCCEEDED(ppf2->QueryInterface
(IID_IShellFolder,
(void**)
&psf))) {
HRESULT hr = psf->ParseDisplayName
(NULL,NULL,g_szPath,NULL,pidlSelected,NULL);
}
Regards,
J
folder. The following is the code i am using to get things done. 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?
IShellFolder *psf;
if (SUCCEEDED(ppf2->QueryInterface
(IID_IShellFolder,
(void**)
&psf))) {
HRESULT hr = psf->ParseDisplayName
(NULL,NULL,g_szPath,NULL,pidlSelected,NULL);
}
Regards,
J