I made the changes, and it still won't work.
I can't remember if I mentioned exactly what the problem is: the code cannot open the registry, let alone read it.
code:
{
bool retValue = TRUE;
long retCode = 0;
HKEY regKey;
unsigned long *szType = 0, *szSize = 0;
unsigned char *szValue = 0;
retCode = RegOpenKeyEx(HKEY_LOCAL_MACHINE, "SOFTWARE/Patchou/MsgPlus2",
0, KEY_QUERY_VALUE, ®Key);
...
}
It is this section: got to be really.