码迷,mamicode.com
首页 >  
搜索关键字:winexec    ( 44个结果
WinExec参数说明
原文:http://www.cnblogs.com/zhwl/archive/2012/12/08/2808675.html第二个参数是控制程序主窗口的显示方式,可能的取值为 :SW_HIDE //程序启动后隐藏主窗口SW_MAXIMIZE //最大化运行SW_MINIMIZE //最小化运行SW_...
分类:Windows程序   时间:2015-04-09 07:39:53    阅读次数:152
C#像运行一个exe 程序一样运行一个dll文件
[DllImport("kernel32.dll")] public static extern int WinExec(string exeName, int operType); public Form1() { ...
分类:Windows程序   时间:2015-04-04 22:25:29    阅读次数:150
【转】【C++】ShellExecute, WinExec, CreateProcess 三者的区别
ShellExecute ShellExecute的功能是运行一个外部程序(或者是打开一个已注册的文件、打开一个目录、打印一个文件等等),并对外部程序有一定的控制。 有几个API函数都可以实现这些功能,但是在大多数情况下ShellExecute是更多的被使用的,同时它并不是太复杂。 Shell...
分类:编程语言   时间:2015-01-28 17:15:45    阅读次数:3343
[转]Delphi执行CMD命令
今天看到有人在问用代码执行CMD命令的问题,就总结一下用法,也算做个备忘。Delphi中,执行命令或者运行一个程序有2个函数,一个是winexec,一个是shellexecute。这两个大家应该都见过,其中,winexec比较简单,可以直接运行一个外部程序,shellexecute则更高级一些,除了...
分类:Windows程序   时间:2014-12-31 16:02:48    阅读次数:526
[转]Delphi调用cmd的两种方法
delphi调用cmd的两种方法vars:string;begins:='cmd.exe /c '+edit1.Text+' >c:\1.txt';winexec(pchar(s),sw_hide);sleep(2000);memo1.Lines.LoadFromFile('c:\1.txt');2...
分类:Windows程序   时间:2014-12-30 00:28:25    阅读次数:266
如何打开记事本并显示指定内容
procedure TForm1.Button1Click(Sender: TObject);var hEdit: HWND; str: string;begin str := '准备要添加到记事本的字符串'; WinExec('Notepad.exe', SW_SHOWNORMAL); ...
分类:其他好文   时间:2014-11-26 06:35:46    阅读次数:148
启动外部程序
启动外部程序我们可以使用函数Winexec、ShellExecute和ShellExecuteEx。我推荐大家使用函数ShellExecute,因为它既灵活,又简单。看看下面的例子,用法就清楚了:*: 启动一个程序ShellExecute(Handle,"open",(LPCSTR)"d:\\模拟程...
分类:其他好文   时间:2014-11-21 12:23:02    阅读次数:259
WinExec、ShellExecute和CreateProcess及返回值判断方式[转]
有三个API函数可以运行可执行文件WinExec、ShellExecute和CreateProcess。CreateProcess因为使用复杂,比较少用。 WinExec主要运行EXE文件。 ⑴ 函数原型:UINTWinExec(LPCSTRlpCmdLine,UINTuCmdShow); ...
分类:Windows程序   时间:2014-11-09 22:10:28    阅读次数:363
[转]WinExec、ShellExecute和CreateProcess及返回值判断方式
[转]WinExec、ShellExecute和CreateProcess及返回值判断方式 http://www.cnblogs.com/ziwuge/archive/2012/03/12/2392472.html有三个API函数可以运行可执行文件WinExec、ShellExecute和Crea....
分类:Windows程序   时间:2014-11-04 22:29:03    阅读次数:399
[转]vc中调用其他应用程序的方法(函数) winexec,shellexecute ,createprocess
三个SDK函数:WinExec,ShellExecute,CreateProcess可以实现调用其他程序的要求,其中以WinExec最为简单,ShellExecute比WinExec灵活一些,CreateProcess最为复杂。WinExec两个参数,前一个指定路径,后一个指定显示方式。ShellE...
分类:Windows程序   时间:2014-07-29 13:54:08    阅读次数:353
44条   上一页 1 2 3 4 5 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!