Click here to Skip to main content
15,896,269 members
Articles / Desktop Programming / MFC
Article

CUpgradeApplication - Remotely Upgrade Applications

Rate me:
Please Sign up or sign in to vote.
4.00/5 (9 votes)
7 Sep 2002 70.7K   2.2K   51   12
How to remotely upgrade applications from a web server with just two lines of code! Does not use MFC.

Screenshot

Introduction

CUpgradeApplication is a C++ class that can check a remote web server and detect if the version on the server is newer than the one running. If that is the case then the class will download the newer version and upgrade the older version. Oh and this version does not need MFC. Which is a good thing!

What Do I Get With This?

Huh? See the above section. That is what you get!

But You Said Two Lines Of Code!?! (AKA: How Can I Use It?)

It's as simple as this:

CUpgradeApplication * UpgradeApp = new CUpgradeApplication;
UpgradeApp->UpgradeViaWeb ("My Application", 
                           "http://myserver.com/myapplication", 
                           "myapp_version.dat", 
                           CURRENT_VERSION);

The myapp_version.dat would contain something like this:

---- Start Of File ----
Title: "<title>"
Version: "<version>"
Filename: "<filename>"
----  End Of File  ----

The system is very simple and self-explanatory so have a quick look through at the source to get an indepth understanding!

Ok - That's Simple Enough; Anything Else

This is the usual nonsense - should you want to use it!

  1. EMail me for permission to use/include (always given). I just want to know what purpose it is being used for. It is provided completely for "Non-Commercial Usage."
  2. Include the files in your C++ project.
  3. Compile!
  4. Play!

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Researcher
Germany Germany
Iain Chesworth graduated from Heriot-Watt University in June of 2002 in Computer Science and Physics. He now works as a C++ programmer and plays with code in his spare time. He is also a keen cyclist and swimmer.

Comments and Discussions

 
GeneralMissing headre in demo application Pin
Rudolf Jan17-Sep-04 23:18
Rudolf Jan17-Sep-04 23:18 
The demo application has a missing header: wspiapi.h. It seems not to be included in VC6. Where can I find this file, and the associated api?

Otherwise, this class prably exacty does what I need.

Regards,

Rudolf Heijink
GeneralRe: Missing headre in demo application Pin
Neville Franks17-Sep-04 23:44
Neville Franks17-Sep-04 23:44 
GeneralRe: Missing headre in demo application Pin
Rudolf Jan20-Sep-04 11:32
Rudolf Jan20-Sep-04 11:32 
GeneralRe: Missing headre in demo application Pin
Neville Franks20-Sep-04 12:02
Neville Franks20-Sep-04 12:02 
GeneralRe: Missing headre in demo application Pin
voodoopriestess20-Sep-04 12:26
voodoopriestess20-Sep-04 12:26 
GeneralGood Job... Pin
freewill15-Dec-03 22:19
freewill15-Dec-03 22:19 
Generalfull code along with workspace Pin
yendluri8-Sep-03 20:31
yendluri8-Sep-03 20:31 
GeneralWouldn't compile Pin
DJWALSH24-Nov-02 7:27
DJWALSH24-Nov-02 7:27 
GeneralRe: Wouldn't compile Pin
khmerkidnow9-Apr-03 10:41
khmerkidnow9-Apr-03 10:41 
GeneralMemory Leaks & temp path Pin
Wouter Dhondt9-Sep-02 0:19
Wouter Dhondt9-Sep-02 0:19 
GeneralRe: Memory Leaks &amp; temp path Pin
sdiazdiaz9-Oct-03 5:36
sdiazdiaz9-Oct-03 5:36 
GeneralLooking good Pin
Wouter Dhondt8-Sep-02 23:02
Wouter Dhondt8-Sep-02 23:02 

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.