我要发帖 回复

中级会员

40

主题

359

积分

0

专家分

:

私信
发表时间 : 2008-12-1 13:31:41 | 浏览 : 1202    评论 : 2
本人在做个演示类的项目,现在想做的工作是,在VP运行过程中想通过键盘去启动另外一个演示程序(非VP程序),问下这个怎么实现。

最近VR访客

menghewei 评论于2008-12-1 13:36:19
guan zhu ......................
tan_dunming 评论于2008-12-1 16:15:24
WinExec MSDN一下就知道了

WinExec

The WinExec function runs the specified application.

Note  This function is provided only for compatibility with 16-bit Windows. Applications should use the CreateProcess function.


UINT WinExec(
  LPCSTR lpCmdLine,
  UINT uCmdShow
);

Parameters
lpCmdLine
[in] Pointer to a null-terminated character string that contains the command line (file name plus optional parameters) for the application to be executed. If the name of the executable file in the lpCmdLine parameter does not contain a directory path, the system searches for the executable file in this sequence:
The directory from which the application loaded.
The current directory.
The Windows system directory. The GetSystemDirectory function retrieves the path of this directory.
The Windows directory. The GetWindowsDirectory function retrieves the path of this directory.
The directories listed in the PATH environment variable.
uCmdShow
[in] For a list of the acceptable values, see the description of the nCmdShow parameter of the ShowWindow function.
追求卓越

手机版|VR开发网 统计 津ICP备18009691号
网安备12019202000257

GMT+8, 2021-4-21 07:28 PM

返回顶部