![]() |
| | #1 |
| Registered User Join Date: Sep 2009
Posts: 10
| Saving variables within a compiled exe? Is it possible to write variables directly into the main ".exe" file, so that when the program is next run, it still remembers what the variables were last set to? I imagine that this is normally done using .dat files, or text files, or even registry entries, but is it possible to do within the ".exe" itself? |
| redone is offline | |
| | #2 |
| Guest Join Date: Aug 2001
Posts: 4,923
| What operating system? Under Windows, you can use the BeginUpdateResource/UpdateResource/EndUpdateResource API's. Of course you have to have an existing resource section in the executable for those to work. |
| Sebastiani is offline | |
| | #3 |
| and the hat of vanishing Join Date: Aug 2001 Location: The edge of the known universe
Posts: 21,214
| You asked already.... modifying and saving global variables on a executable file using libelf !!!! What have YOU done so far.
__________________ If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut. Up to 8Mb PlusNet broadband from only £5.99 a month! |
| Salem is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Creating local variables in a program? | fl0at | C Programming | 5 | 01-04-2008 07:34 PM |
| Global Variables | Taka | C Programming | 34 | 11-02-2007 03:25 AM |
| Reading Separate Digits as Variables | linuxpyro | C Programming | 7 | 09-13-2006 05:23 PM |
| saving mutliple variables....... | jverkoey | C++ Programming | 10 | 02-13-2003 08:34 PM |
| functions to return 2 variables? | tim | C Programming | 5 | 02-18-2002 02:39 PM |