How to Implement Automatic Update Checks in MFC Applications?

  • Thread starter Thread starter sweetjones
  • Start date Start date
  • Tags Tags
    Automatic
Click For Summary
SUMMARY

To implement automatic update checks in MFC applications, utilize the CInternetSession and CFtpConnection classes for establishing an FTP connection. The recommended approach involves downloading a simple text file, such as 'latest.txt', from a designated website to check for version updates. This method is straightforward and effective for applications built with Visual Studio C++ 2005.

PREREQUISITES
  • Familiarity with MFC (Microsoft Foundation Classes)
  • Understanding of FTP (File Transfer Protocol) operations
  • Basic knowledge of version control concepts
  • Experience with Visual Studio C++ 2005
NEXT STEPS
  • Research the implementation of CInternetSession in MFC applications
  • Learn how to use CFtpConnection for file transfers in MFC
  • Explore version checking techniques using text files
  • Investigate alternative methods for update checks, such as HTTP requests
USEFUL FOR

Developers working on dialog-based applications in MFC, particularly those looking to implement automatic update functionality in their software.

sweetjones
Messages
44
Reaction score
0
I have a dialog-based application in MFC, and I was wondering what class or component do I need to implement in the app to check for new updates? For example, on start-up have the app check for a new update from a designated website. I am using VSC++2005. Let me know if you need more info or a better clarification on what I'm talking about. Thanks In Advance!
 
Technology news on Phys.org
Easiest way is to make an anonymous ftp connection to your site and download a simple file called eg 'latest.txt' and check the version number inside it.

Ftp is faily easy to implement from MFC see CInternetSession and CFtpConnection
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
5K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 17 ·
Replies
17
Views
3K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 6 ·
Replies
6
Views
9K
Replies
7
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 30 ·
2
Replies
30
Views
4K
Replies
4
Views
1K