请问怎么使用ShellExcute这个函数?它需要包含什么头文件?
解决方案 »
- 关于广域网 网络通信 目标IP的问题
- excel数组公式填充效率问题
- MFC 如何获取视频文件的第一帧
- 请教STL高手,vector< int[2] > 该如何push_back?
- 急求! 怎样得到一个按钮重复按下的次数
- 如何用宏将log(const char *fmt,...)换成real_log(__FILE__,__LINE__,__FUNCTION__,fmt,...)
- 高分请教怎样读取系统的文件分配表?(在线)(进者有分)
- 传递结构指针的问题
- 一个 Windows Sockets 网络编程的方案...
- *****在NT服务程序中如何修改线程或者进程的权限(或者如何获得进程handle?)*****
- 请问in_addr结构中的各个参数的意义
- 谁有改编到窗口下的Guniffer代码啊?
ShellExecute(handle, NULL, path_to_folder, NULL, NULL, SW_SHOWNORMAL);
ShellExecute(handle, "explore", path_to_folder, NULL, NULL, SW_SHOWNORMAL);
ShellExecute(handle, "find", path_to_folder, NULL, NULL, 0);...查MSDN
要包含:
Shellapi.h
c:\program files\microsoft visual studio\vc98\include\shellapi.h(53) : error C2065: 'HDROP' : undeclared identifier
c:\program files\microsoft visual studio\vc98\include\shellapi.h(53) : error C2501: 'DECLARE_HANDLE' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\shellapi.h(55) : error C2146: syntax error : missing ';' before identifier 'UINT'
c:\program files\microsoft visual studio\vc98\include\shellapi.h(55) : error C2501: 'DECLSPEC_IMPORT' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\shellapi.h(55) : fatal error C1004: unexpected end of file found
Error executing cl.exe.cq.exe - 5 error(s), 0 warning(s)
我用了之后,报了以上错误