CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 1999
    Posts
    4

    CWinApp::GetProfileXX and CWinApp::WriteProfileXX

    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

  2. #2
    Join Date
    Apr 1999
    Location
    Beaverton, OR
    Posts
    241

    Re: CWinApp::GetProfileXX and CWinApp::WriteProfileXX

    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.


  3. #3
    Join Date
    May 1999
    Posts
    26

    Re: CWinApp::GetProfileXX and CWinApp::WriteProfileXX

    Hello...

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

    Santhosh


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured