求助shellexecute,createprocess如何使用?
求助shellexecute,createprocess如何使用?
我在使用标题两个函数是,它提示函数为定义的错误,及参数也有错,参数我是根据帮助文件打进去的,请高手帮忙,举个例子更好,谢谢!
ShellExecute(handle,NULL,gubbwin, NULL, NULL, SW_SHOWNORMAL);
gwbbwin为当前目录下的可执行程序,错误为:
[Error] Unit1.pas(29): Undeclared identifier: 'ShellExecute'
[Error] Unit1.pas(29): Undeclared identifier: 'gubbwin'
问题点数:20、回复次数:3Top
1 楼westfly(左眼)回复于 2002-05-05 15:08:54 得分 15
没把ShellApi包含进去吧
uses ShellApi;Top
2 楼elitist21cn(john)回复于 2002-05-05 15:27:59 得分 0
谢谢西翔Top
3 楼FlyingQQ(FlyingQQ)回复于 2002-05-05 15:40:02 得分 5
你试试
uses shellapi
……
shellexecute(Form1.handle,'open','gubbwwin.exe','','',sw_shownormal);
如果gubbwin.exe不行,你试试加入他的路径看看;这样应该是没有问题了的!Top
相关问题
- 請問:ShellExecute()如何使用?
- 如何使用createprocess调用程序?
- VB6中API函数 CreateProcess如何使用
- CreateProcess()还是ShellExecute()
- 有关CreateProcess或ShellExecute
- 如何启动16位的应用程序及如何终止它???WINEXEC OR SHELLEXECUTE OR CREATEPROCESS??
- 使用ShellExecute()如何激活系统运行“mailto:airfly@163.com”
- 使用ShellExecute打开的窗口如何隐藏?
- 如何在程序使用ShellExecute启动自己的exe程序
- 如何使用CreateProcess建立IE进程,并使打开指定链接




