请问 shellexecute 在什么头文件里包含? 谢谢

cuihz 2001-07-20 05:34:45
...全文
1770 14 打赏 收藏 转发到动态 举报
写回复
用AI写文章
14 条回复
切换为时间正序
请发表友善的回复…
发表回复
westfly 2001-07-21
  • 打赏
  • 举报
回复
ShellApi.h
mme 2001-07-21
  • 打赏
  • 举报
回复
我试了一下,用ShellEexecute可以调用realplayer,但不知道为什么调用不了winamp?怪!
Sephil 2001-07-21
  • 打赏
  • 举报
回复
ShellExecute不也是调用系统默认的程序么?
xycleo 2001-07-20
  • 打赏
  • 举报
回复
winExec不回过时!!!

在某些场合!!用winExec好!!他可以调用系统默认的程序来打开文件!!!
我不懂电脑 2001-07-20
  • 打赏
  • 举报
回复
直接用
lovebcb 2001-07-20
  • 打赏
  • 举报
回复
WinExec 过时了
CreateProcess 参数挺繁
lovebcb 2001-07-20
  • 打赏
  • 举报
回复
我爱用 ShellExecute
////////////////////
UINT WinExec(
LPCSTR lpCmdLine, // address of command line
UINT uCmdShow // window style for new application
);

BOOL CreateProcess(
LPCTSTR lpApplicationName, // pointer to name of executable module
LPTSTR lpCommandLine, // pointer to command line string
LPSECURITY_ATTRIBUTES lpProcessAttributes, // pointer to process securit
y attributes
LPSECURITY_ATTRIBUTES lpThreadAttributes, // pointer to thread security
attributes
BOOL bInheritHandles, // handle inheritance flag
DWORD dwCreationFlags, // creation flags
LPVOID lpEnvironment, // pointer to new environment block
LPCTSTR lpCurrentDirectory, // pointer to current directory name
LPSTARTUPINFO lpStartupInfo, // pointer to STARTUPINFO
LPPROCESS_INFORMATION lpProcessInformation // pointer to PROCESS_INFORM
ATION
);

HINSTANCE ShellExecute(
HWND hwnd, // handle to parent window
LPCTSTR lpOperation, // pointer to string that specifies operation to pe
rform
LPCTSTR lpFile, // pointer to filename or folder name string
LPCTSTR lpParameters, // pointer to string that specifies executable-fil
e parameters
LPCTSTR lpDirectory, // pointer to string that specifies default directo
ry
INT nShowCmd // whether file is shown when opened
);
jimzj 2001-07-20
  • 打赏
  • 举报
回复
一般运行SHELLEXCRTE是不要头文件的不过它是包含在《SHELLAPI。H》 中你也可以用WINEXEC来运行一个程序
dycdyc123 2001-07-20
  • 打赏
  • 举报
回复
不用包含头文件!
zzzl 2001-07-20
  • 打赏
  • 举报
回复
可以用windows的查找功能找所有的*.h文件,内容就是那个字符串。
Sephil 2001-07-20
  • 打赏
  • 举报
回复
楼上如此迅速!
stanely 2001-07-20
  • 打赏
  • 举报
回复
不用包含头文件。
wjzhuang 2001-07-20
  • 打赏
  • 举报
回复
ShellExecute(NULL,
"open",
"notepad.exe",
"",
"",
SW_SHOWDEFAULT);
不摇头文件,直接可以用
cuihz 2001-07-20
  • 打赏
  • 举报
回复
请问如何在C++ Builder中,用一个可执行文件调用另一个可执行文件? 如何调用帮助文件????? 谢谢

13,825

社区成员

发帖
与我相关
我的任务
社区描述
C++ Builder相关内容讨论区
社区管理员
  • 基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧