buttons and config file for MFC
-
Is there a way to set the dialog program so that when it run, it read input file (config, ini, txt, data, mdb...). And let say that the file containt an int. if it is 1, the screen will show 1 button, if 2, 2 button and so forth. Also same for string, can the program take in a string and put it up on screen as button label? thank you!
-
Is there a way to set the dialog program so that when it run, it read input file (config, ini, txt, data, mdb...). And let say that the file containt an int. if it is 1, the screen will show 1 button, if 2, 2 button and so forth. Also same for string, can the program take in a string and put it up on screen as button label? thank you!
You can use INI files or registry to store your settings. Read them on application initialization and apply the settings as per your application's needs. Both INI and registry supports integers and strings. Gurmeet S. Kochar
If you believe in God, it's because of the Devil
My CodeProject Articles: HTML Reader C++ Class Library, Numeric Edit Control