请教pp11.5中如何声明api
FUNCTION ulong ShellExecute(ulong hwnd,ref string lpOperation,ref string lpFile,ref string lpParameters,ref string lpDirectory,ulong nShowCmd) LIBRARY "shell32.dll"
好像有问题。
------解决方案--------------------
FUNCTION ulong ShellExecute(ulong hwnd,ref string lpOperation,ref string lpFile,ref string lpParameters,ref string lpDirectory,ulong nShowCmd) LIBRARY "shell32.dll" alias for "ShellExecute;Ansi"
------解决方案--------------------
Function long ShellExecute ( long hwnd, string lpVerb, string lpFile, string lpParameters, string lpDirectory, long nShowCmd ) Library "shell32.dll" Alias For "ShellExecuteW"
------解决方案--------------------
FUNCTION ulong ShellExecute(ulong hwnd,ref string lpOperation,ref string lpFile,ref string lpParameters,ref string lpDirectory,ulong nShowCmd) LIBRARY "shell32.dll" ALIAS FOR "ShellExecuteA;Ansi"
这样定义就可以,必须要有;Ansi"
as_file只要是完整的文件名就可以打开!