如何让VFP程序打开图片文件?
先通过程序选定了一个图片文件“图片.jpg”,然后如何打开它(启动看图王等看图程序,并在其中打开“图片.jpg”)?谢谢指教!
程序代码:Declare Integer ShellExecute In shell32.dll Integer,String,String,String,String,Integer
Declare Integer GetDesktopWindow In Win32api
lcFile = Getfile("jpg")
If Empty(lcFile)
Return
Endif
lnWnd = GetDesktopWindow()
=Shellexecute(lnWnd,"open",lcFile,"","C:\",0)
Clear dlls用默认软件打开jpg文件

