Hi.
I want to save the configuration of my program into its exe file (directly or in resources).
I know I can use registry or a separate configuration file but I prefer to save in exe.

Could you please help me..?
Thank you in advance.

Best regards, Petrica

So the configuration of your program will it change in the future or does it contain static never changing values?

In the environment that I work in it is not a good idea to include configuration values in the .exe since the location of this file is normally protected by windows NTFS permissions that prevent a user from modifying the .exe

also modifying the .exe file may create some interesting results with your anti-virus software.

TIniFile ...... simple to use..... effective..... or like you say... registry

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.