MFC 启动外部进程的问题
2013-12-02 14:37
309 查看
四种方法:
(1)HINSTANCE ShellExecute(
HWND hwnd,
LPCTSTR lpOperation,
LPCTSTR lpFile,
LPCTSTR lpParameters,
LPCTSTR lpDirectory,
INT nShowCmd
);
(2)WINSHELLAPI BOOL WINAPI ShellExecuteEx(
LPSHELLEXECUTEINFO lpExecInfo
);
(3)BOOL CreateProcess(
LPCTSTR lpApplicationName,
// pointer to name of executable module
LPTSTR lpCommandLine, // pointer to command line string
LPSECURITY_ATTRIBUTES lpProcessAttributes, // process security attributes
LPSECURITY_ATTRIBUTES lpThreadAttributes, // 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_INFORMATION
);
(4)UINT WinExec(
LPCSTR lpCmdLine, // address of command line
UINT uCmdShow // window style for new application
);
(1)HINSTANCE ShellExecute(
HWND hwnd,
LPCTSTR lpOperation,
LPCTSTR lpFile,
LPCTSTR lpParameters,
LPCTSTR lpDirectory,
INT nShowCmd
);
(2)WINSHELLAPI BOOL WINAPI ShellExecuteEx(
LPSHELLEXECUTEINFO lpExecInfo
);
(3)BOOL CreateProcess(
LPCTSTR lpApplicationName,
// pointer to name of executable module
LPTSTR lpCommandLine, // pointer to command line string
LPSECURITY_ATTRIBUTES lpProcessAttributes, // process security attributes
LPSECURITY_ATTRIBUTES lpThreadAttributes, // 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_INFORMATION
);
(4)UINT WinExec(
LPCSTR lpCmdLine, // address of command line
UINT uCmdShow // window style for new application
);
相关文章推荐
- MFC 对于使用自己的线进行启动其他进程的虚拟地址映射问题
- MFC C++ 由于应用程序配置不正确,应用程序未能启动。重新安装应用程序可能会纠正这个问题
- MFC使用CEF并实现js与C++交互功能,解决Render进程中OnContextCreated绑定与OnWebKitInitialized的js扩展无法回调问题
- Qt ------ QProcess,启动外部进程,进程间通信
- C#启动和关闭外部进程的方法
- 浅谈MFC多进程编程,ui卡死问题
- Jenkins——应用篇——如何解决execute shell中启动的进程被在Job退出时被杀死问题
- centos6.X系统非root用户启动的程序无法创建超过1024个进程的问题
- 解决:vnc4server进程故障---->启动图形界面工具gnome遇到的问题
- MFC 下的dl文件和外部程序的冲突问题
- 没有找到MFC80UD.DLL,,因此这个应用程序未能启动。重新安装应用程序可能会修复此问题。”
- MFC获取主exe路径、启动另一个进程、关闭另一个进程、使同時只有一個進程在運行
- Jps介绍以及解决jps无法查看某个已经启动的java进程问题
- 关于VS220113无法启动IIS Express,系统日志:工作进程未能预加载 .Net 运行时版本 v4.0.30128问题
- IronPython调用C#启动外部进程
- Jps介绍以及解决jps无法查看某个已经启动的java进程问题
- IDE-----VS2005运行过程中"没有找到MFC80UD.DLL,因此这个程序未能启动.重新安装应用程序可能会修复此问题"? 的解决
- MFC:由于应用程序配置不正确,应用程序未能启动。重新安装应用程序可能会纠正这个问题
- MFC采用MSComm控件通信时,出现error LNK2001:无法解析的外部符号问题的解决方法
- jenkins中通过execute shell启动的进程会被杀死的问题