-
大小: 149KB文件類型: .rar金幣: 2下載: 0 次發(fā)布日期: 2021-06-10
- 語(yǔ)言: 其他
- 標(biāo)簽:
資源簡(jiǎn)介
關(guān)于內(nèi)存映射文件讀寫文件的方法,大家學(xué)習(xí)了解一下

代碼片段和文件信息
//?mapfile_test.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“mapfile_test.h“
#include?“mapfile_testDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CMapfile_testApp
BEGIN_MESSAGE_MAP(CMapfile_testApp?CWinApp)
//{{AFX_MSG_MAP(CMapfile_testApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CMapfile_testApp?construction
CMapfile_testApp::CMapfile_testApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CMapfile_testApp?object
CMapfile_testApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CMapfile_testApp?initialization
BOOL?CMapfile_testApp::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
CMapfile_testDlg?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;
}
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件????6144000??2007-12-07?19:36??mapfile_test\0000000001
?????文件????6144000??2007-12-07?19:36??mapfile_test\0000000002
?????文件????6144000??2007-12-07?19:36??mapfile_test\0000000003
?????文件????6144000??2007-12-07?19:36??mapfile_test\0000000004
?????文件????6144000??2007-12-07?19:36??mapfile_test\0000000005
?????文件????6144000??2007-12-07?19:36??mapfile_test\0000000006
?????文件????6144000??2007-12-07?19:36??mapfile_test\0000000007
?????文件????6144000??2007-12-07?19:36??mapfile_test\0000000008
?????文件????6144000??2007-12-07?19:36??mapfile_test\0000000009
?????文件????6144000??2007-12-07?19:36??mapfile_test\0000000010
?????目錄??????????0??2007-12-07?19:36??mapfile_test\Debug
?????文件??????35832??2007-12-07?19:33??mapfile_test\mapfile_test.aps
?????文件???????1244??2007-12-07?19:40??mapfile_test\mapfile_test.clw
?????文件???????2147??2007-12-07?15:11??mapfile_test\mapfile_test.cpp
?????文件???????4267??2007-12-07?15:11??mapfile_test\mapfile_test.dsp
?????文件????????547??2007-12-07?15:11??mapfile_test\mapfile_test.dsw
?????文件???????1390??2007-12-07?15:11??mapfile_test\mapfile_test.h
?????文件??????58368??2007-12-07?19:40??mapfile_test\mapfile_test.ncb
?????文件??????48640??2007-12-07?19:40??mapfile_test\mapfile_test.opt
?????文件???????1010??2007-12-07?19:36??mapfile_test\mapfile_test.plg
?????文件???????5537??2007-12-07?19:33??mapfile_test\mapfile_test.rc
?????文件???????7238??2007-12-07?19:36??mapfile_test\mapfile_testDlg.cpp
?????文件???????1475??2007-12-07?19:23??mapfile_test\mapfile_testDlg.h
?????文件???????3687??2007-12-07?15:11??mapfile_test\ReadMe.txt
?????文件???????1078??2007-12-07?15:11??mapfile_test\res\mapfile_test.ico
?????文件????????404??2007-12-07?15:11??mapfile_test\res\mapfile_test.rc2
?????目錄??????????0??2007-12-07?15:11??mapfile_test\res
?????文件????????828??2007-12-07?15:25??mapfile_test\resource.h
?????文件????????214??2007-12-07?15:11??mapfile_test\StdAfx.cpp
?????文件???????1054??2007-12-07?15:11??mapfile_test\StdAfx.h
............此處省略5個(gè)文件信息
評(píng)論
共有 條評(píng)論