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.