kirennia
Part of the furniture
- Joined
- Dec 26, 2003
- Messages
- 3,857
Well, as I've now finished uni, I've decided to start up another project; a graphics engine built without existing libraries etc as I really want to get to grips more with the lower-level aspects of the language.
The thing is, I keep running into silly little problems and short of spamming this forum 24/7, I was wondering if anyone could recommend any free C++ programming forums. I say free because ones out there such as Experts-exchange are all well and good until you look at the price, heh That said, I suppose I could just spam up one thread on here...
For the time being however, has anyone come across accessing the registry before? I've got this code currently which accesses any registry point specified by the APPLICATIONREG definition; the only problem is that 'temp', the parameter which reads the value, can only seem to be four characters long, producing 'too many characters in constant' errors if you query it against a string value of 5 characters or more. For its current use it's not really a problem but in the interest of extensibility, this isn't the kind of limitation I'd want to impose on end-users.
I'm available at kirennia@hotmail.com on MSN if anyone is interested in aiding with this venture as well by the way... It'd be a way to force me into keeping up my UML documentation if I had more people then just myself
The thing is, I keep running into silly little problems and short of spamming this forum 24/7, I was wondering if anyone could recommend any free C++ programming forums. I say free because ones out there such as Experts-exchange are all well and good until you look at the price, heh That said, I suppose I could just spam up one thread on here...
For the time being however, has anyone come across accessing the registry before? I've got this code currently which accesses any registry point specified by the APPLICATIONREG definition; the only problem is that 'temp', the parameter which reads the value, can only seem to be four characters long, producing 'too many characters in constant' errors if you query it against a string value of 5 characters or more. For its current use it's not really a problem but in the interest of extensibility, this isn't the kind of limitation I'd want to impose on end-users.
HKEY hKey;
bool needToWrite = false;
if( ERROR_SUCCESS == RegCreateKeyEx( HKEY_CURRENT_USER, APPLICATIONREG, 0, NULL, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &hKey, NULL ) )
{
DWORD dwType;
DWORD temp = NULL;
DWORD dwLength = sizeof(DWORD);
//Whether or not the program is fullscreen
RegQueryValueEx(hKey, TEXT("fullScreen"), 0, &dwType, (LPBYTE)temp, &dwLength);
//This works fine
if(temp == 'true'){}
//This doesn't...too many characters in constant
if(temp == 'false'){}
bool needToWrite = false;
if( ERROR_SUCCESS == RegCreateKeyEx( HKEY_CURRENT_USER, APPLICATIONREG, 0, NULL, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &hKey, NULL ) )
{
DWORD dwType;
DWORD temp = NULL;
DWORD dwLength = sizeof(DWORD);
//Whether or not the program is fullscreen
RegQueryValueEx(hKey, TEXT("fullScreen"), 0, &dwType, (LPBYTE)temp, &dwLength);
//This works fine
if(temp == 'true'){}
//This doesn't...too many characters in constant
if(temp == 'false'){}
I'm available at kirennia@hotmail.com on MSN if anyone is interested in aiding with this venture as well by the way... It'd be a way to force me into keeping up my UML documentation if I had more people then just myself