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!
- 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."
- Include the files in your C++ project.
- Compile!
- Play!