資源簡介
使用C++編寫的最簡單的ini文件讀取與寫入操作的實例程序,該項目包含所有源代碼,可以直接打開編譯運行。

代碼片段和文件信息
//?RdWrtIni.cpp?:?Defines?the?class?behaviors?for?the?application.
//?dOWNLOAD?by?http://www.NewXing.com
#include?“stdafx.h“
#include?“RdWrtIni.h“
#include?“RdWrtIniDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CRdWrtIniApp
BEGIN_MESSAGE_MAP(CRdWrtIniApp?CWinApp)
//{{AFX_MSG_MAP(CRdWrtIniApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CRdWrtIniApp?construction
CRdWrtIniApp::CRdWrtIniApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CRdWrtIniApp?object
CRdWrtIniApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CRdWrtIniApp?initialization
BOOL?CRdWrtIniApp::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
CRdWrtIniDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????13196??2015-12-28?11:37??ini文件讀寫操作類實例源碼(C++版)\www.NewXing.com\Debug\BuildLog.htm
?????文件?????????65??2015-12-28?11:37??ini文件讀寫操作類實例源碼(C++版)\www.NewXing.com\Debug\mt.dep
?????文件??????71168??2015-12-28?11:37??ini文件讀寫操作類實例源碼(C++版)\www.NewXing.com\Debug\RdWrtIni.exe
?????文件????????920??2015-12-28?11:37??ini文件讀寫操作類實例源碼(C++版)\www.NewXing.com\Debug\RdWrtIni.exe.em
?????文件????????984??2015-12-28?11:37??ini文件讀寫操作類實例源碼(C++版)\www.NewXing.com\Debug\RdWrtIni.exe.em
?????文件????????861??2015-12-28?11:37??ini文件讀寫操作類實例源碼(C++版)\www.NewXing.com\Debug\RdWrtIni.exe.intermediate.manifest
?????文件?????923752??2015-12-28?11:37??ini文件讀寫操作類實例源碼(C++版)\www.NewXing.com\Debug\RdWrtIni.ilk
?????文件??????22350??2015-12-28?11:37??ini文件讀寫操作類實例源碼(C++版)\www.NewXing.com\Debug\RdWrtIni.obj
?????文件???25165824??2015-12-28?11:37??ini文件讀寫操作類實例源碼(C++版)\www.NewXing.com\Debug\RdWrtIni.pch
?????文件????3509248??2015-12-28?11:37??ini文件讀寫操作類實例源碼(C++版)\www.NewXing.com\Debug\RdWrtIni.pdb
?????文件???????2752??2015-12-28?11:37??ini文件讀寫操作類實例源碼(C++版)\www.NewXing.com\Debug\RdWrtIni.res
?????文件??????52008??2015-12-28?11:37??ini文件讀寫操作類實例源碼(C++版)\www.NewXing.com\Debug\RdWrtIniDlg.obj
?????文件?????467159??2015-12-28?11:37??ini文件讀寫操作類實例源碼(C++版)\www.NewXing.com\Debug\StdAfx.obj
?????文件?????912384??2015-12-28?11:37??ini文件讀寫操作類實例源碼(C++版)\www.NewXing.com\Debug\vc90.idb
?????文件????2002944??2015-12-28?11:37??ini文件讀寫操作類實例源碼(C++版)\www.NewXing.com\Debug\vc90.pdb
?????文件??????35880??2002-05-18?05:45??ini文件讀寫操作類實例源碼(C++版)\www.NewXing.com\RdWrtIni.aps
?????文件???????1316??2002-06-29?20:40??ini文件讀寫操作類實例源碼(C++版)\www.NewXing.com\RdWrtIni.clw
?????文件???????2126??2010-08-16?13:10??ini文件讀寫操作類實例源碼(C++版)\www.NewXing.com\RdWrtIni.cpp
?????文件???????4195??2002-05-18?05:35??ini文件讀寫操作類實例源碼(C++版)\www.NewXing.com\RdWrtIni.dsp
?????文件????????541??2002-05-18?05:35??ini文件讀寫操作類實例源碼(C++版)\www.NewXing.com\RdWrtIni.dsw
?????文件???????1381??2010-08-16?13:10??ini文件讀寫操作類實例源碼(C++版)\www.NewXing.com\RdWrtIni.h
?????文件???12708864??2015-12-28?14:16??ini文件讀寫操作類實例源碼(C++版)\www.NewXing.com\RdWrtIni.ncb
?????文件???????5728??2002-05-18?05:45??ini文件讀寫操作類實例源碼(C++版)\www.NewXing.com\RdWrtIni.rc
?????文件????????881??2015-12-28?10:46??ini文件讀寫操作類實例源碼(C++版)\www.NewXing.com\RdWrtIni.sln
????..A..H.?????35328??2015-12-28?14:16??ini文件讀寫操作類實例源碼(C++版)\www.NewXing.com\RdWrtIni.suo
?????文件???????7322??2015-12-28?10:46??ini文件讀寫操作類實例源碼(C++版)\www.NewXing.com\RdWrtIni.vcproj
?????文件???????1407??2015-12-28?14:16??ini文件讀寫操作類實例源碼(C++版)\www.NewXing.com\RdWrtIni.vcproj.qw-PC.qw.user
?????文件???????5636??2015-12-28?14:13??ini文件讀寫操作類實例源碼(C++版)\www.NewXing.com\RdWrtIniDlg.cpp
?????文件???????1440??2010-08-16?13:10??ini文件讀寫操作類實例源碼(C++版)\www.NewXing.com\RdWrtIniDlg.h
?????文件???????3615??2002-05-18?05:35??ini文件讀寫操作類實例源碼(C++版)\www.NewXing.com\ReadMe.txt
............此處省略13個文件信息
評論
共有 條評論