Hi,
I make a MRU routine using a .INI file with this section:
[MRU items]
file1=
file2=
file3=
file4=
MRUlist=1234
Then, when my app starts, I take MRUlist item and parse it getting the files items in the correct order. When the user save a file, I take the last item number in MRUlist (in this sample: 4), and write the INI file with the file name in the file# item (i.e file4=c:\path\filename). Also I change the MRUlist order to 4123.
In this case, the INI file have this:
[MRU items]
file1=
file2=
file3=
file4=c:\path\filename
MRUlist=4123
I make a loop from 1 to 4 to read the items and add the most recently used files to the File Menu (I do it if !Empty(file#))
Good luck!!
Esteban
Lic. Esteban Bruno
Gerente de Sistemas
TASSO S.R.L.