Instead making a windows program with all code in it, you can make a dll with the program and a simple executable which calls this program.In this situation I think you can replace the dlls and next time the exe is executed it will load the new program.
Try this...----- Original Message ----- From: "Octavian Rasnita" <orasnita@xxxxxxxxx>
To: <programmingblind@xxxxxxxxxxxxx> Sent: Saturday, February 23, 2008 4:44 PM Subject: replacing a running program
Hi,I've made a program for Windows and I want to add a function that downloads a newer version of this program if available, but I want it to replace the current version with the newer one. I know that under Windows if the program is running, I cannot delete it in order to replace with the newer version.I want it to act something like the extraordinary program UTorrent even though my program is not made using the same language.Do you have any idea how to do that, without creating a second program that does the download and replacement?Thank you. Octavian __________View the list's information and change your settings at //www.freelists.org/list/programmingblind
__________View the list's information and change your settings at //www.freelists.org/list/programmingblind