【帮忙】定义外部函数出错
PB9, --->declare variables--->Global variables:
FUNCTION boolean GetComputerNameA(ref string cname,ref long nbuf) LIBRARY "Kernel32.dll"
ALIAS FOR "GetComputerName"
出错定位第二行, error C0031: Syntax error
换成
ALIAS FOR "GetComputerName; Ansi" 一样的错
大家帮看一下哦
[解决办法]
FUNCTION boolean GetComputerNameA(ref string cname,ref long nbuf) LIBRARY "Kernel32.dll" ALIAS FOR "GetComputerName"
写在同一行
[解决办法]
--->declare variables--->Global variables:
Gloal variables 改为Global Extern function
你是定义函数不是定义变量
[解决办法]
改为Global Extern functions