Click here to Skip to main content
15,904,934 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Help me to create connection in My Network Places? Pin
Ngo Thang Long28-Apr-05 21:37
Ngo Thang Long28-Apr-05 21:37 
QuestionCListControl - SetSel command? Pin
IlanTal28-Feb-05 0:47
IlanTal28-Feb-05 0:47 
AnswerRe: CListControl - SetSel command? Pin
Antony M Kancidrowski28-Feb-05 1:08
Antony M Kancidrowski28-Feb-05 1:08 
GeneralRe: CListControl - SetSel command? Pin
IlanTal28-Feb-05 1:19
IlanTal28-Feb-05 1:19 
Questionhow to create dynamic controls depends on the input configuration given Pin
itjalal28-Feb-05 0:42
itjalal28-Feb-05 0:42 
Questionself update exe? Pin
ThinkingPrometheus28-Feb-05 0:33
ThinkingPrometheus28-Feb-05 0:33 
AnswerRe: self update exe? Pin
David Crow28-Feb-05 2:57
David Crow28-Feb-05 2:57 
GeneralRe: self update exe? Pin
scott sanders28-Feb-05 4:16
scott sanders28-Feb-05 4:16 
I do something similar to this for getting my programs to update themselves from the web. But I use an MSI for distribution so that is the second program in the scenario. I like your solution because you can easily execute the updated program when it has finished.

My method was:

1. Check for updates
2. If any found, confirm and download into user Temp directory
3. ShellExecute the MSI package (/qb) just downloaded
4. PostQuitMessage on self

The installer updates the program and then leaves the user back at the desktop. I never thought of a good way to restart the application. I might try something like yours next time.



GeneralStrange Windows Messages (0x0000c0d1) Pin
Onni Qvickström28-Feb-05 0:19
sussOnni Qvickström28-Feb-05 0:19 
GeneralRe: Strange Windows Messages (0x0000c0d1) Pin
Mike Dimmick28-Feb-05 6:15
Mike Dimmick28-Feb-05 6:15 
GeneralRe: Strange Windows Messages (0x0000c0d1) Pin
OnniQvickstrom1-Mar-05 21:42
OnniQvickstrom1-Mar-05 21:42 
GeneralOverlay text on screen Pin
Will227-Feb-05 23:53
Will227-Feb-05 23:53 
GeneralRe: Overlay text on screen Pin
benjymous28-Feb-05 0:19
benjymous28-Feb-05 0:19 
GeneralHelp with Ownerdraw ComboBox Pin
realAlex27-Feb-05 22:29
realAlex27-Feb-05 22:29 
QuestionAnyone expert in Image Formats ? Pin
Pantelis Georgiadis27-Feb-05 21:59
Pantelis Georgiadis27-Feb-05 21:59 
GeneralReading/Writing from/to a device Pin
User 137680027-Feb-05 21:58
User 137680027-Feb-05 21:58 
GeneralRe: Reading/Writing from/to a device Pin
ThatsAlok27-Feb-05 22:33
ThatsAlok27-Feb-05 22:33 
GeneralRe: Reading/Writing from/to a device Pin
User 137680027-Feb-05 23:05
User 137680027-Feb-05 23:05 
GeneralRe: Reading/Writing from/to a device Pin
ThatsAlok27-Feb-05 23:21
ThatsAlok27-Feb-05 23:21 
Generalcannot find cube root of a negative number in pow() Pin
tttyip27-Feb-05 21:58
tttyip27-Feb-05 21:58 
GeneralRe: cannot find cube root of a negative number in pow() Pin
Antony M Kancidrowski28-Feb-05 1:39
Antony M Kancidrowski28-Feb-05 1:39 
GeneralVideo for Windows vs. DirectShow Pin
Danoo27-Feb-05 20:53
Danoo27-Feb-05 20:53 
GeneralRe: Video for Windows vs. DirectShow Pin
Andrew Walker27-Feb-05 23:57
Andrew Walker27-Feb-05 23:57 
GeneralResource editor/compiler Pin
WildWildWind27-Feb-05 20:51
WildWildWind27-Feb-05 20:51 
GeneralRe: Resource editor/compiler Pin
the pink jedi27-Feb-05 20:59
the pink jedi27-Feb-05 20:59 

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.