문제

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.

올바른 솔루션이 없습니다

다른 팁

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)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top