Hello,

I am trying to convert Visual Basic Registry Access to C++ functions and i have a lot of errors about conversions but i have no idea how to fix them.

PHP Code:
charRegQueryStringValue (HKEY__keycharcValue)
{
ulongiResult;
ulongiValueType;
ulong iBuffSize;
unsigned char zBuff;

iResult RegQueryValueEx (keycValueNULLiValueType, &zBuffiBuffSize);

//    if (iResult == 0){
//        if (iValueType == 1){
//            char zBuff[iBuffSize];            
//                iResult =  RegQueryValueEx (key, cValue, NULL, iValueType, &zBuff, iBuffSize);
//        }
//    }

}

charGetSetting(HKEY__keycharcPath[], charcValue[])
{
    
//Read a setting from registry
    
unsigned long int hKey;
    
unsigned short int hDataType;
    
char zBuff[256];

    
RegOpenKey (keycPath*, hKey);
    
strcpy(zBuffRegQueryStringValue (&hKeycValue);
    
RegCloseKey (hKey);

I am a newbie to C++. Please help me.
Thanks,