Click here to Skip to main content
Licence 
First Posted 7 Sep 2002
Views 57,504
Downloads 1,839
Bookmarked 48 times

CUpgradeApplication - Remotely Upgrade Applications

By voodoopriestess | 7 Sep 2002
How to remotely upgrade applications from a web server with just two lines of code! Does not use MFC.
2 votes, 22.2%
1

2
1 vote, 11.1%
3

4
6 votes, 66.7%
5
3.60/5 - 16 votes
μ 3.60, σa 3.09 [?]

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

About the Author

voodoopriestess

Researcher

Germany Germany

Member
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.

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralMissing headre in demo application PinmemberRudolf Jan Heijink0:18 18 Sep '04  
GeneralRe: Missing headre in demo application PinmemberNeville Franks0:44 18 Sep '04  
GeneralRe: Missing headre in demo application PinmemberRudolf Jan Heijink12:32 20 Sep '04  
GeneralRe: Missing headre in demo application PinmemberNeville Franks13:02 20 Sep '04  
GeneralRe: Missing headre in demo application Pinmembervoodoopriestess13:26 20 Sep '04  
GeneralGood Job... Pinmemberfreewill23:19 15 Dec '03  
Generalfull code along with workspace Pinmemberyendluri21:31 8 Sep '03  
GeneralWouldn't compile PinmemberDJWALSH8:27 24 Nov '02  
GeneralRe: Wouldn't compile Pinmemberkhmerkidnow11:41 9 Apr '03  
GeneralMemory Leaks & temp path PinmemberKwakkie1:19 9 Sep '02  
GeneralRe: Memory Leaks & temp path Pinmembersdiazdiaz6:36 9 Oct '03  
GeneralLooking good PinmemberKwakkie0:02 9 Sep '02  

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

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

Permalink | Advertise | Privacy | Mobile
Web04 | 2.5.120210.1 | Last Updated 8 Sep 2002
Article Copyright 2002 by voodoopriestess
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid