Click here to Skip to main content
15,886,799 members
Articles / Mobile Apps / Windows Mobile

An Asynchronous HTTP Request WinINet Wrapper in C++

Rate me:
Please Sign up or sign in to vote.
4.90/5 (45 votes)
25 Aug 2011CPOL2 min read 134.3K   8.8K   172  
An asynchronous HTTP download class for C++
#pragma once

//-------------------------------------------------------------------------------------
class DlgMain : public CDialog
{
    enum
    {
        IDC_OPEN_SIMPLE_DOWNLOAD = 1200,
        IDC_SHOW_LINK = 2000,
    };

public:
    DlgMain(CWnd* pParent = NULL) : CDialog(IDD_MAIN, pParent) {}

private:
    virtual BOOL OnInitDialog();

    afx_msg void OnOpenSimpleDownload();
    afx_msg void OnClickLink(NMHDR* pNotifyStruct, LRESULT* pResult) ;
	DECLARE_MESSAGE_MAP()
};

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Team Leader PhoXo
China China
graduate from University of Science and Technology of China at 2002.

Now I work at www.phoxo.com.

Comments and Discussions