program I'm writing. What I'm doing is loading filenames into
variables, in this case all the filenames are .wav's
// Open Registry
RegOpenKeyEx(HKEY_LOCAL_MACHINE, "SOFTWAREOGCANTradeHelper", 0,
KEY_QUERY_VALUE, &hKey);
// Get the string and store it in CamDir
if (RegQueryValueEx(hKey, "CamelotDirectory", NULL, NULL, (LPBYTE)
CamDir, &dwBufLen)){
// Display error on fail.
MessageBox( NULL, "CamDir", "TradeHelper v1.5", MB_OK );
}
// When reading multiple keys I just copy and paste the above
// code and change the relevant bits... I'm not closing between each
read.
// Close Registry
RegCloseKey(hKey);
Ok, this works fine, BUT when I try to get all 23 of the values I
need, it fails on some... For example it failed on the 8th, 18th and
20th keys... So I shuffle things around, move 4 keys to the end of
the list... and then it fails on the 4th, 14th, 17th, and 20th.
Depending how I move things, I can get all keys to succeed or fail,
but can't figure out WHY this is happening...
I've fought with this for a whil enow and can't figure out whats going
on... any help would be much appreciated :)

New Topic/Question
Reply




MultiQuote



|