VC中shellexecute的头文件是甚么
shellexecute函数是Windows API中的一个函数,它用于履行外部利用程序、打开网页、打开文档等操作。在C++中,可以通过包括Windows.h头文件来使用shellexecute函数。
示例代码:
#include <Windows.h>
int main()
{
ShellExecute(NULL, "open", "https://www.example.com", NULL, NULL, SW_SHOWNORMAL);
return 0;
}
需要注意的是,ShellExecute函数的返回值是HINSTANCE类型,表示履行结果的句柄。
TOP