資源簡介
VC++實現(xiàn)將本地文件通過HTTP上傳到網(wǎng)站

代碼片段和文件信息
//Download?by?http://www.NewXing.com
//?HotpimUpload.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“HotpimUpload.h“
#include?“HotpimUploadDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CHotpimUploadApp
BEGIN_MESSAGE_MAP(CHotpimUploadApp?CWinApp)
//{{AFX_MSG_MAP(CHotpimUploadApp)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code!
//}}AFX_MSG
ON_COMMAND(ID_HELP?CWinApp::onhelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CHotpimUploadApp?construction
CHotpimUploadApp::CHotpimUploadApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CHotpimUploadApp?object
CHotpimUploadApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CHotpimUploadApp?initialization
BOOL?CHotpimUploadApp::InitInstance()
{
AfxEnableControlContainer();
//?Standard?initialization
//?If?you?are?not?using?these?features?and?wish?to?reduce?the?size
//??of?your?final?executable?you?should?remove?from?the?following
//??the?specific?initialization?routines?you?do?not?need.
#ifdef?_AFXDLL
Enable3dControls(); //?Call?this?when?using?MFC?in?a?shared?DLL
#else
Enable3dControlsStatic(); //?Call?this?when?linking?to?MFC?statically
#endif
CHotpimUploadDlg?dlg;
m_pMainWnd?=?&dlg;
int?nResponse?=?dlg.DoModal();
if?(nResponse?==?IDOK)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?OK
}
else?if?(nResponse?==?IDCANCEL)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?Cancel
}
//?Since?the?dialog?has?been?closed?return?FALSE?so?that?we?exit?the
//??application?rather?than?start?the?application‘s?message?pump.
return?FALSE;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????20776??2013-01-02?15:23??www.NewXing.com\src\HotpimUpload.aps
?????文件???????1176??2013-01-02?15:23??www.NewXing.com\src\HotpimUpload.clw
?????文件???????2185??2013-01-02?15:22??www.NewXing.com\src\HotpimUpload.cpp
?????文件??????10549??2013-01-02?15:22??www.NewXing.com\src\HotpimUploadDlg.cpp
?????文件????????252??2013-01-02?15:22??www.NewXing.com\src\StdAfx.cpp
????.......??????4264??2007-08-17?09:43??www.NewXing.com\src\HotpimUpload.dsp
????.......???????549??2007-08-14?10:06??www.NewXing.com\src\HotpimUpload.dsw
?????文件???????1428??2013-01-02?15:22??www.NewXing.com\src\HotpimUpload.h
?????文件???????1763??2013-01-02?15:22??www.NewXing.com\src\HotpimUploadDlg.h
?????文件????????728??2013-01-02?15:22??www.NewXing.com\src\Resource.h
?????文件???????1092??2013-01-02?15:22??www.NewXing.com\src\StdAfx.h
????.......??????1078??2007-08-14?10:06??www.NewXing.com\src\res\HotpimUpload.ico
?????文件??????41984??2013-01-02?15:23??www.NewXing.com\src\HotpimUpload.ncb
?????文件?????317952??2013-01-02?15:23??www.NewXing.com\src\HotpimUpload.opt
????.......???????993??2007-08-17?16:59??www.NewXing.com\src\HotpimUpload.plg
????.......??????5317??2007-08-14?10:07??www.NewXing.com\src\HotpimUpload.rc
????.......???????404??2007-08-14?10:06??www.NewXing.com\src\res\HotpimUpload.rc2
????.......???????913??2004-02-06?22:46??www.NewXing.com\src\HotpimUpload.sln
????..A..H.??????9216??2004-02-06?22:57??www.NewXing.com\src\HotpimUpload.suo
????.......??????3687??2007-08-14?10:06??www.NewXing.com\src\ReadMe.txt
????.......??????6242??2004-02-06?22:51??www.NewXing.com\src\HotpimUpload.vcproj
?????目錄??????????0??2013-01-02?15:22??www.NewXing.com\src\res
?????目錄??????????0??2013-01-02?15:23??www.NewXing.com\src
-----------?---------??----------?-----??----
???????????????432548????????????????????23
評論
共有 條評論