时间:2021-07-01 10:21:17 帮助过:22人阅读
RegDBGetKeyValueEx函数:
InstallSheild Script Code
1 2 3 4 5 6 |
STRING szKey, szName, svValue; NUMBER nvSize; RegDBSetDefaultRoot(HKEY_LOCAL_MACHINE); szKey = "\\SOFTWARE\\Wow6432Node\\Office\\" + IFX_PRODUCT_VERSION; szName = "Word"; RegDBGetKeyValueEx ( szKey, szName, REGDB_STRING, svValue, nvSize ); |
编译报错:
error 1 numeric value required
对于REGDB_STRING不能直接写于RegDBGetKeyValueEx函数中,需要一个变量来代替REGDB_STRING
修改为:
InstallSheild Script Code
1 2 3 4 5 6 7 8 |
STRING szKey, szName, svValue; NUMBER nvSize,nvType; RegDBSetDefaultRoot(HKEY_LOCAL_MACHINE); szKey = "\\SOFTWARE\\Wow6432Node\\Office\\" + IFX_PRODUCT_VERSION; szName = "Word"; nvType = REGDB_STRING; RegDBGetKeyValueEx ( szKey, szName, nvType, svValue, nvSize ); |
RegDBGetKeyValueEx函数使用报错error 1 numeric value required
标签:string product white div cto 12px number table bsp