Click to See Complete Forum and Search --> : CWinApp::GetProfileXX and CWinApp::WriteProfileXX


Eduardo Lara
May 10th, 1999, 05:44 PM
Hello everyone,
Is there a way to change CWinApp::GetProfileXX and CWinApp::WriteProfileXX default behavior from reading/writing to CURRENT_USER key to r/w to LocalMachine key? Or would I have to rewrite this functions to work this way?

Thank you in advance,


Eduardo Lara

nordyj
May 12th, 1999, 11:06 AM
I've personally had a very difficult time using GetProfileXX and WriteProfileXX. Instead, I downloaded a class off of Codeguru under System. (I think). Try a couple of them out. These work much better. Of course, if you're using VC5.0, you can also use the CRegKey class. Look it up in the documentation.

scp
May 12th, 1999, 12:53 PM
Hello...

Use SetRegistryKey() and set the registry key as whatever key you want to use.

Santhosh