how to store settings in resource

前端 未结 2 1939
深忆病人
深忆病人 2020-12-22 03:02

i am trying to store some settings in resource of my application but failed i dont want to use ini file or registry methods i am using this code

    var
         


        
2条回答
  •  囚心锁ツ
    2020-12-22 03:34

    Having your program modify itself is a bad idea. As a couple people already pointed out, this will fail badly under Vista and Win7 in most cases. It's better not to fight the operating system. Windows already provides a couple different ways for your program to store its settings. You can drop an INI or other config file in some folder outside of Program Files, or you can store it in the Registry, which is probably the best option.

提交回复
热议问题