Burtlancaster
Programmer
Can anyone help me to make a REG_DWORD registry entry. I'am quite cable of creating a REG_SZ and a REG_BINARY using the following methods:
Code:
TRegistry *Reg = new TRegistry;
Reg->RootKey = HKEY_CLASSES_ROOT; // Set the root key to HKEY_CLASSES_ROOT
int Buffer = 65536;
Reg->OpenKey(".ggc", true); // Now open the key, with the possibility to
// create the key if it doesn't exist.
Reg->WriteString("", "ggcfile");// Write my file type to it.
Reg->CloseKey();
Reg->OpenKey("ggcfile", true); // create an association for that file type
Reg->WriteString("", "Gear Data file");
Reg->WriteBinaryData("EditFlags", &Buffer, 4);