我申明了一个函数
prototype STRING GetRegValue(STRING, STRING, STRING);函数如下:
function STRING GetRegValue(szPath, szKey, szDefault)
STRING svValue;
NUMBER nvType;
NUMBER nvSize;
begin
RegDBSetDefaultRoot(HKEY_LOCAL_MACHINE);
RegDBGetKeyValueEx(szPath, szKey, nvType, svValue, nvSize); if svValue = "" then
return szDefault;
else
return svValue;
endif;
end;但是编译器返回说出错!信息如下:
Compiling...
Folder: <C:\My Installations\PropertyPlus\Script Files>
setup.rul(810) : error C8002: 'STRING' : function name expected
setup.rul(823) : error C8019: 'end' : expected type declaration
Done- 2 error(s), 0 warning(s)但是我不知道是什么错!请高手指点一下。
prototype STRING GetRegValue(STRING, STRING, STRING);函数如下:
function STRING GetRegValue(szPath, szKey, szDefault)
STRING svValue;
NUMBER nvType;
NUMBER nvSize;
begin
RegDBSetDefaultRoot(HKEY_LOCAL_MACHINE);
RegDBGetKeyValueEx(szPath, szKey, nvType, svValue, nvSize); if svValue = "" then
return szDefault;
else
return svValue;
endif;
end;但是编译器返回说出错!信息如下:
Compiling...
Folder: <C:\My Installations\PropertyPlus\Script Files>
setup.rul(810) : error C8002: 'STRING' : function name expected
setup.rul(823) : error C8019: 'end' : expected type declaration
Done- 2 error(s), 0 warning(s)但是我不知道是什么错!请高手指点一下。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货