Registry, Regedit

This is a discussion on Registry, Regedit within the C++ Programming forums, part of the General Programming Boards category; Also, you don't want to put it in System! You want in the Local Application Data folder....

  1. #16
    a_capitalist_story
    Join Date
    Dec 2007
    Posts
    2,655
    Also, you don't want to put it in System! You want in the Local Application Data folder.

  2. #17
    Registered User
    Join Date
    Oct 2008
    Posts
    59
    Yes, that was the page I found before when writing the GetFolderPath() but I did miss all the platforms.
    That really gave me the answer and I can there see what OS that supports SpecialFolder etc...

    This syntax is really very handy ! A new discovery for today..

    Thank you very much for help !!!

  3. #18
    Registered User
    Join Date
    Oct 2008
    Posts
    59
    Okay what would be the difference to have it in the System and Local Application Data folder ?
    However the Local Application Data folder works fine.

    Then I suppose I would write it like this:
    Code:
    System::Environment::GetFolderPath(Environment::SpecialFolder::LocalApplicationData);
    Last edited by franse; 01-28-2009 at 05:27 PM.

  4. #19
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    LocalApplicationData is per user - there is only one SYSTEM. So if you want the logged in user to have his/her own data, then application data is better.

    Besides that, either is fine, I suppse - although I don't like apps that put their own data in SYSTEM directory, it should just be stuff that gets installed in that region - that way, you don't have to search through it to find data-files that you need to back up before re-installing the OS, etc.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  5. #20
    The larch
    Join Date
    May 2006
    Posts
    3,573
    Wouldn't System folder be protected against writing without administrator rights anyway?
    I might be wrong.

    Thank you, anon. You sure know how to recognize different types of trees from quite a long way away.
    Quoted more than 1000 times (I hope).

  6. #21
    a_capitalist_story
    Join Date
    Dec 2007
    Posts
    2,655
    Exactly, anon, and it's expected that one keeps their data files with their own application.

  7. #22
    Registered User
    Join Date
    Oct 2008
    Posts
    59
    That was great to know and follow your discussion...
    I would really keep such information in the Local Application Data folder to it correctly and to be
    on the safe side at the same time.

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Efficient registry use?
    By bennyandthejets in forum Windows Programming
    Replies: 6
    Last Post: 09-28-2003, 07:28 PM
  2. Registry
    By gvector1 in forum C# Programming
    Replies: 0
    Last Post: 07-30-2003, 05:02 PM
  3. how to edit the registry
    By jverkoey in forum Windows Programming
    Replies: 3
    Last Post: 03-28-2003, 04:20 AM
  4. LOGFONT struct & Registry :: MFC
    By kuphryn in forum Windows Programming
    Replies: 3
    Last Post: 05-27-2002, 04:38 PM
  5. Registry Access
    By ExDigit in forum Windows Programming
    Replies: 3
    Last Post: 01-04-2002, 04:02 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21