oops!!! you are right. Thank you. Juan Lang wrote: > Hi Byeong-Sik, > > + lRet = RegSetValueEx(hKey, valueName, 0, type, > (LPBYTE)stringValueData, j); > > I think that should be j * sizeof(TCHAR), yes? > --Juan