Question

I'm looking for a way to save the configuration of my program and embed it to the executable file at runtime. By the way, if there is a better way to save the configuration of a program without any external files, then please tell me about it. My main goal is to make a program that is not using any external files, and is able to save it's configuration regardless of it's location. For example, we can configurate it on the pc.1 and then copy the exe file (yes, it's meant to be written for Windows) to pc.2 and run it with the previously saved configuration.

No correct solution

OTHER TIPS

If your intent is to have no additional files and you develop your program for Windows then you could persist your settings in the Windows Registry.

Here are some online resources:

Windows Registry (Wikipedia)

How to: Write Data to the Windows Registry (C++/CLI)

How to: Read Data from the Windows Registry (C++/CLI)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top