problem with CryptStringToBinary.
-
Hi, I am getting a string from the server , and doing following operation to get the BYTE format of that string key; This variable contains the value, which I received from server. BYTE key1[24] = {0}; DWORD dwBase64Size; CryptStringToBinary(key,0,CRYPT_STRING_BASE64,0,&dwBase64Size,0,0); if (dwBase64Size>24) return ""; CryptStringToBinary(key,0,CRYPT_STRING_BASE64,key1,&dwBase64Size,0,0); This function is working fine for WINXP, but fails on Win2K, as it does not allow the dll to get registered. In the same way the prolem is with CryptBinaryToString also. can you suggest a alternate of this code, which works on WIN2K. Thanks
Vineet Kumar Singhal Sr.Software Engineer Mumbai Tough Time Never last, but Tough People do.
-
Hi, I am getting a string from the server , and doing following operation to get the BYTE format of that string key; This variable contains the value, which I received from server. BYTE key1[24] = {0}; DWORD dwBase64Size; CryptStringToBinary(key,0,CRYPT_STRING_BASE64,0,&dwBase64Size,0,0); if (dwBase64Size>24) return ""; CryptStringToBinary(key,0,CRYPT_STRING_BASE64,key1,&dwBase64Size,0,0); This function is working fine for WINXP, but fails on Win2K, as it does not allow the dll to get registered. In the same way the prolem is with CryptBinaryToString also. can you suggest a alternate of this code, which works on WIN2K. Thanks
Vineet Kumar Singhal Sr.Software Engineer Mumbai Tough Time Never last, but Tough People do.
Why don't you try to build your own [^]? :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]