我想在程序中调用windows的画图程序应该怎么写代码 我想在程序中调用windows的画图程序应该怎么写代码 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 res:=winexec('c:\winnt\system32\mspaint.exe',SW_SHOW); var S:String;begin SetLength(S,255); GetSystemDirectory(PChar(S),255); Winexec(PChar(S+'\mspaint.exe'),SW_SHOW);end; Win32上最好用ShellExecute:---------------------------------implementation{$R *.DFM} uses ShellAPI;procedure TForm1.Button1Click(Sender: TObject);begin ShellExecute(Application.Handle,'Open',PChar('mspaint'),nil,nil,SW_SHOWNORMAL); //ShellExecute(Application.Handle,'Open',PChar('%systemroot%/system32/mspaint'),nil,nil,SW_SHOWNORMAL);end;我爱Delphi! teechart 7 试了多次 实在搞不定了 D版的兄弟给指个路 请教一个非常奇怪的问题? 数列问题,60,120,210...后面是的数字是多少? DELPHI 和 DBASE的问题 请尽快给出回答,谢谢大家参与! 为什么登陆窗口用 showmodal 方法 显示不出来 ,一晃就过?急!!1 将Excel表格中的数据导入数据库 要用多少知识才能得到经理的认可?可怜的程序员! 一段加密的SQL语句,寻求解密算法 如何获取两个字符串的相同字符数目?? 在DELPHI,如何做工具栏? Ado控件的问题。
res:=winexec('c:\winnt\system32\mspaint.exe',SW_SHOW);
S:String;
begin
SetLength(S,255);
GetSystemDirectory(PChar(S),255);
Winexec(PChar(S+'\mspaint.exe'),SW_SHOW);
end;
---------------------------------implementation{$R *.DFM}
uses ShellAPI;procedure TForm1.Button1Click(Sender: TObject);
begin
ShellExecute(Application.Handle,'Open',PChar('mspaint'),nil,nil,SW_SHOWNORMAL);
//ShellExecute(Application.Handle,'Open',PChar('%systemroot%/system32/mspaint'),nil,nil,SW_SHOWNORMAL);
end;
我爱Delphi!