源程序:
#include <shellapi.h>
using namespace std;
int mian()
{
::ShellExecute(NULL,L"open",_T("rundll32.exe"),_T("C:\Users\Administrator\桌面\a.jpg"),NULL,SW_SHOWNORMAL);
return 0;
}
错误提示:
#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
DECLARE_HANDLE (HDROP);
#include "windows.h "
#include <shellAPI.h>
#include <iostream>
using namespace std;
int main()
{
::ShellExecute(NULL,L"open",_T("rundll32.exe"),_T("C:\\Users\\Administrator\\桌面\\a.jpg"),NULL,SW_SHOWNORMAL);
return 0;
}
您好,我是有问必答小助手,您的问题已经有小伙伴帮您解答,感谢您对有问必答的支持与关注!