用pb6.5調用API出錯。Error calling External Function ShellExcute

catthunder 2004-09-16 09:28:17
聲明
Function ulong ShellExecute(ulong hwnd,string lpOperation,string lpFile,string lpParameters,string lpDirectory,ulong nShowCmd) LIBRARY "shell32.dll"
調用
ShellExecute(handle(w_barcodescan),"open",ls_filePath,"","",1)

...全文
112 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
hzhxxx 2004-09-16
  • 打赏
  • 举报
回复

Function long ShellExecute (long hwnd, string lpOperation,string lpFile,string lpParameters, string lpDirectory,long nShowCmd)Library "shell32.dll" Alias for "ShellExecuteA"


这样没有效果,没有打开文件


这个好一些,指定使用那个程序打开,一般情况都可以
Function long WinExec (string lpCmdLine, long nCmdShow)Library "kernel32" Alias for "WinExec"
winexec("notepad.exe c:\test.txt",3)


hzhxxx 2004-09-16
  • 打赏
  • 举报
回复

Function long ShellExecute (long hwnd, string lpOperation,string lpFile,string lpParameters, string lpDirectory,long nShowCmd)Library "shell32.dll" Alias for "ShellExecuteA"
hzhxxx 2004-09-16
  • 打赏
  • 举报
回复

Function long WinExec (string lpCmdLine, long nCmdShow)Library "kernel32" Alias for "WinExec"

winexec("notepad.exe c:\test.txt",3)

680

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder API 调用
社区管理员
  • API 调用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧