首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > PB >

PP11.5api的声明有关问题

2012-02-25 
PP11.5api的声明问题请教pp11.5中如何声明apiFUNCTION ulong ShellExecute(ulong hwnd,ref string lpOpera

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只要是完整的文件名就可以打开!

热点排行