Information générale
Catégorie:
Programmation Orientée Object
Versions des environnements
>>I have a File Unitdetails.dbf which has one Record, the name of the unit. I have included that file in my .exe application. However i want that the user shoud be able to change the name of the unit. .i.e the name of the unit shall be update able, althogh no new records to be added.
>>
>>Is it possible ti keep file included and at the same time the file be update able.
>>
>>Regards
>
>
>Yes, but it requires low-level file access from a spawned remote process that does the update once the application has terminated. It's a simple matter of opening the .EXE, locating the table within, and doing the update. You'll need to add markers that you can explicitly search for within the .EXE, use FILETOSTR() to load the .EXE file, make the change with STUFF(), and then STRTOFILE() to write the .EXE back out.
>
>Simple. :-)
You're also likely to get flagged by an antivirus or system security feature (program modifying EXE -- would look "suspicious") and cause a "scary message" (as far as end-user is concerned) to appear. You're also likely to run into snag if the program was installed under "Program Files" (on 32-bit) or "Program Files (x86)" (on 64-bit)...
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement