error C2664: '_strdup' : cannot convert parameter 1 from 'LPCTSTR' to 'const char *'
TCHAR* pszCopy = _tcsdup(pszKeyName);
cannot convert parameter 2 from 'const char *' to 'LPCTSTR'
bRetVal = obKey.SetKeyValueEx(((bSystem)? szREG_SYSTEM : szREG_USER), szName.c_str(), szValue.c_str(), (DWORD)szValue.length(), true, false, ((bSystem)? HKEY_LOCAL_MACHINE : HKEY_CURRENT_USER));
LPCTSTR pszValue;BYTE* ba;int i, count = <длинна конвертируемой строки>;ba = new BYTE[count+1];ba[count] = '\0';for ( i=0; i<count; i++ ) ba[i] = (BYTE)pszValue[i];