FS7
August 19, 2009, 13:34:55
Hi,
could anybody get me an example, how IMVCrypt::SetKey is to call?
I allways get HRESULT 0x80070057 (An invalid parameter was passed to the returning function)
My Code:
CString strK = "9471BD247F6B887FA291...";
BYTE *byteK = new BYTE[strK.GetLength()+1];
ZeroMemory(byteK,strK.GetLength()+1);
memcpy(&byteK[0],strK,strK.GetLength());
hr = pNWCrypt->SetKey(strK.GetLength(), byteK); //hr=0x80070057
delete [] byteK;
Any Idea?
Bestz Regards
FS7
could anybody get me an example, how IMVCrypt::SetKey is to call?
I allways get HRESULT 0x80070057 (An invalid parameter was passed to the returning function)
My Code:
CString strK = "9471BD247F6B887FA291...";
BYTE *byteK = new BYTE[strK.GetLength()+1];
ZeroMemory(byteK,strK.GetLength()+1);
memcpy(&byteK[0],strK,strK.GetLength());
hr = pNWCrypt->SetKey(strK.GetLength(), byteK); //hr=0x80070057
delete [] byteK;
Any Idea?
Bestz Regards
FS7