![]() |
|
#1
|
|||
|
|||
Dynamic definition?I have made a program based on some of macro definitions (#define name numeric-value). Now I want to make these changeable from the executable file without rewriting the entire program. How should I do?
|
|||
|
#2
|
||||
|
||||
Re: Dynamic definition?You won't be able to change the #defines without recompiling; however, there are a few other possibilities that come to mind...
1. have the program read/write to a config. file (like a .ini file) 2. have the program read/write registry key values. 3. pass arguments to the program with each execution. maybe others will post with more ideas. __________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
Recent GIDBlog
Not selected for officer school by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to initialize an array in a class definition or in constructor? | pablowablo | C++ Forum | 17 | 05-Sep-2009 12:14 |
| Dynamic vs Static Arrays | WaltP | Miscellaneous Programming Forum | 5 | 16-Feb-2006 15:54 |
| In which case static object - dynamic object can be used | Janakiraman | MS Visual C++ / MFC Forum | 8 | 17-Jan-2006 14:08 |
| justifying text with dynamic programming | twigboy | C++ Forum | 6 | 03-Feb-2005 14:30 |
| problem reading to a dynamic array | noamfrie | C Programming Language | 9 | 02-Jan-2005 18:35 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The