读书人

PP11.5api的声明有关问题

发布时间: 2012-02-25 10:01:48 作者: rapoo

PP11.5api的声明问题
请教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只要是完整的文件名就可以打开!

读书人网 >PB

热点推荐