Click here to Skip to main content
16,006,845 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: draw some shapes without shownig them and without having a window & then save it as a bitmap Pin
Mike Nordell30-Jan-03 12:03
Mike Nordell30-Jan-03 12:03 
GeneralRe: draw some shapes without shownig them and without having a window & then save it as a bitmap Pin
73Zeppelin30-Jan-03 16:38
73Zeppelin30-Jan-03 16:38 
GeneralUsing InsertMenu() Pin
ns30-Jan-03 8:10
ns30-Jan-03 8:10 
GeneralRe: Using InsertMenu() Pin
Joaquín M López Muñoz30-Jan-03 9:31
Joaquín M López Muñoz30-Jan-03 9:31 
QuestionReBar Vs. Toolbar? Pin
will138330-Jan-03 7:09
will138330-Jan-03 7:09 
AnswerRe: ReBar Vs. Toolbar? Pin
Abbas_Riazi30-Jan-03 7:20
professionalAbbas_Riazi30-Jan-03 7:20 
AnswerRe: ReBar Vs. Toolbar? Pin
Shog930-Jan-03 10:46
sitebuilderShog930-Jan-03 10:46 
QuestionReplacing A Running Executable? Pin
nde_plume30-Jan-03 6:50
nde_plume30-Jan-03 6:50 
Does anyone know of a good way to replace a running executable file.

Specifically, I have a piece of client software that I want to be able to update from the server. I need some sort of mechanism to replace the executable file while it is running. Obviously, I can readily download a new binary from the server without any problems, the question is how to get it executing?

I had considered the idea of using a little proxy program with this algorithm:

If filename2 is newer than filename1 then
copy filename2 to filename1
end if

execute filename1

Using an algorithm like that, filename1 is the standard executable file for my software, and an update is simply copied to filename 2. That means that next time the proxy program is run (which is always when you start the software) it auto updates.

However, there are a few problems with this, such as the hit on startup, and the fact that you have to restart before getting the new updated software.

Does anyone have a better approach to this?

(Oh, BTW, excuse the VB in the algorithm above, I switch between so often that I forget where I am sometimes!!)

Thanks for your help

AnswerRe: Replacing A Running Executable? Pin
Abbas_Riazi30-Jan-03 7:15
professionalAbbas_Riazi30-Jan-03 7:15 
AnswerRe: Replacing A Running Executable? Pin
Alvaro Mendez30-Jan-03 8:06
Alvaro Mendez30-Jan-03 8:06 
AnswerRe: Replacing A Running Executable? Pin
Todd Smith30-Jan-03 14:30
Todd Smith30-Jan-03 14:30 
Generalmessing with afxDump Pin
Scott H. Settlemier30-Jan-03 6:44
Scott H. Settlemier30-Jan-03 6:44 
GeneralRe: messing with afxDump Pin
mike_corrigan30-Jan-03 7:22
mike_corrigan30-Jan-03 7:22 
GeneralA problem updating FoxPro table. Pin
iluha30-Jan-03 6:11
iluha30-Jan-03 6:11 
GeneralChange Image in CListCtrl Pin
Marc Tompkins30-Jan-03 6:10
Marc Tompkins30-Jan-03 6:10 
GeneralRe: Change Image in CListCtrl Pin
Abbas_Riazi30-Jan-03 7:03
professionalAbbas_Riazi30-Jan-03 7:03 
GeneralDialog in dll Pin
dawo30-Jan-03 5:06
dawo30-Jan-03 5:06 
GeneralRe: Dialog in dll Pin
Abbas_Riazi30-Jan-03 7:09
professionalAbbas_Riazi30-Jan-03 7:09 
GeneralRe: Dialog in dll Pin
will138330-Jan-03 7:20
will138330-Jan-03 7:20 
GeneralMessage Timers Pin
Dov Sherman30-Jan-03 5:05
Dov Sherman30-Jan-03 5:05 
GeneralRe: Message Timers Pin
Jeremy Falcon30-Jan-03 8:00
professionalJeremy Falcon30-Jan-03 8:00 
GeneralDynamic Change Between Single/Multi select i CListCtrl Pin
Michael Olsen30-Jan-03 4:32
Michael Olsen30-Jan-03 4:32 
GeneralRe: Dynamic Change Between Single/Multi select i CListCtrl Pin
Navin30-Jan-03 4:53
Navin30-Jan-03 4:53 
GeneralRe: Dynamic Change Between Single/Multi select i CListCtrl Pin
User 665830-Jan-03 5:44
User 665830-Jan-03 5:44 
GeneralRunning one function but different paths for a number of menu items Pin
ns30-Jan-03 4:27
ns30-Jan-03 4:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.