[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 144
  • Last Modified:

file with Registrystyle

Hello all,
i want to store data, like in the registry, but in other file. Is there any way to do so ?
Thanks in advance
0
PaTrick_Hayder
Asked:
PaTrick_Hayder
  • 2
1 Solution
 
arhCommented:
At first look there is no way. But you can create keys and values that you need in Registry, store them in separate file by RegSaveKey function, and delete them. When you will need to
use this data, load it by RegRestoreKey into registry.
0
 
AvonWyssCommented:
It may depend on what exactly you want to behave like in the registry. It is possible without too much pain to create object classes that are able to store/restore themselves in/from a file.
0
 
mirek071497Commented:
I think so you need file in which you can find key, replace key, etc. Then ini files is good solution for you. In 32bit environment you don't need ini files to store registry values but you can free use them to store you'r own configuration data. You can specify the name of file which can differ in extension from "*.ini" and use as a real ini file.
0
 
mirek071497Commented:
Do you need example or you don't read this ?
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now