菜鸟问题!ShellExecute使用
// Shell.cpp : Defines the entry point for the application.
//
用VC6自动生成的simple win32调用ShellExecute函数,编译错误
error C2065: 'ShellExecute' : undeclared identifier
何解?
#include <windows.h>
#include "stdafx.h"
int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
// TODO: Place code here.
ShellExecute(NULL,"open","C:\\Documents and Settings\\Administrator\\桌面\\86days\\receiver1\\receiver1\\Debug\\receiver1.exe",0,0,2);
return 0;
}