aab,
Sunteam is right, you shouldn't need to reload the entire program space, in fact it may not work since code run in Windows is effectivly relocatable at run time. So there is no garuntee you could get access to the same memory addresses in the future. The best way I have found to save a game is to use memory blocks to hold coppies of all variables that need to be saved. Then simply save that entire region of memory to a file. This makes loading it back in easy. Unfortianately not having access to type pointers means no C/C++ like structure dumps and loads, you will have to code a function to copy all the variables you want to save to the memory block and another to read them back. Yes, its a lot of typing, and is one of the biggest flaws with blitz basic( no direct pointer access), but its not hard to do, just takes time.
|