请问如何在VFP6中调用系统默认程序打开JPG文件?
请问如何在VFP6中调用系统默认程序打开JPG文件?多谢
cFile = "C:\temp\test.jpg"
DECLARE LONG ShellExecute IN Shell32 LONG,STRING@,STRING@,STRING@,STRING@,LONG
ShellExecute(0, "open", cFile, NULL, NULL, 1)
或
oApp = CREATEOBJECT("Shell.Application")
oApp.ShellExecute(cFile, "", "", "open", 1)