开发者

Converting a Hexadecimal string to a Binary Value in installshield 2009

开发者 https://www.devze.com 2023-01-30 04:29 出处:网络
Setting binary registry values in installshield needs binary string values, However usually binary values in installscript is presented in hexadecimal forms.

Setting binary registry values in installshield needs binary string values, However usually binary values in installscript is presented in hexadecimal forms.

So following code is not correct i开发者_开发知识库f you want to use RegDBSetKeyValueEx (Just Sample and value is not correct) because it is expecting binary string.

  szName = "DefaultLaunchPermission";
  nType  = REGDB_BINARY;
  szKeyValue1 = "0100048070";
  RegDBSetKeyValueEx(szKey, szName, nType, szKeyValue1, StrLength(szKeyValue1));

I've already found binary to hex function but I'm looking to find hex to binary to convert my hex-form string to binary string before passing them to RegDBSetKeyValueEx.

If some body has already developed that I'd appreciate.

0

精彩评论

暂无评论...
验证码 换一张
取 消