我想启动另外一个程序:int intReValue;
char szAppPath[]="C:\Program Files\SEL5040";
char szAppName[]="SelReport.exe";
char szOperation[]="Open";intReValue=ShellExecute(@@,szTemp,szAppName,NULL,szAppName,SW_MAXIMIZE);//@@处应该怎么写??
//
char szAppPath[]="C:\Program Files\SEL5040";
char szAppName[]="SelReport.exe";
char szOperation[]="Open";intReValue=ShellExecute(@@,szTemp,szAppName,NULL,szAppName,SW_MAXIMIZE);//@@处应该怎么写??
//
解决方案 »
- UI问题,控件的柔化
- 熟悉MSXML::DOMDocument的请进!
- vc怎样做可以拖曳的图(带拓扑关系)
- 如何初始化一个程序?
- 请问在dephi中如何调用VC建立的dll
- 如何将MFC程序封装成静态LIB
- **** GetParentFrame()->RecalcLayout();怎么会出错 ****
- 请问用ado data control时 可以不设默认的数据库么,我需要运行时动态设置
- HanTroInit()函数的用法
- edit框内容改变的时候如何得到改变后的内容
- 请问,那么多的sdk,做vc的要下载哪个啊,是不是都要下载呢?
- 如何实现在静态文本控件或编辑控件或RichText控件中显示HTML文件?
[in] Handle to a parent window. This window receives any message boxes that an application produces, such as error reporting.
没有父窗口,置为NULL也行。
如果只单纯的打开一个exe文件
用WinExec就行了
[in] Handle to a parent window. This window receives any message boxes that an application produces, such as error reporting.
NULL试试~
或
ShellExecute(NULL,"open","notepad.exe",
"c:\\MyLog.log","",SW_SHOW );
As you can see, I haven't passed the full path of the programs.