我怎样才能获得IShellBrowser?

时间:2013-08-08 06:36:36

标签: c++ windows

我在XP系统上使用VC6。当程序运行时,我得到的内存无法读取弹出错误。有人可以帮忙吗?似乎& isw具有无效值。抱歉,我不知道如何制作代码块。

IShellWindows *isw = NULL;  
hr = ::CoCreateInstance(CLSID_ShellWindows, NULL, CLSCTX_ALL, IID_IShellWindows, (void**)&isw);  

long count = 0;  
hr = psw->get_Count(&count);  

0 个答案:

没有答案
相关问题