くだすれVisual C++(超初心者用)その3
■ このスレッドは過去ログ倉庫に格納されています
0657デフォルトの名無しさん
2006/09/15(金) 16:54:13大サービス感謝です。
MSDNは見てたんですが
CWinApp::WriteProfileInt
CString strSection = "My Section";
CString strStringItem = "My String Item";
CString strIntItem = "My Int Item";
↑これの意味が分からず、色々ググってあのHPにたどり着いたんです。
CWinApp* pApp = AfxGetApp();
pApp->WriteProfileString(strSection, strStringItem, "test");
CString strValue;
strValue = pApp->GetProfileString(strSection, strStringItem);
ASSERT(strValue == "test");
pApp->WriteProfileInt(strSection, strIntItem, 1234);
int nValue;
nValue = pApp->GetProfileInt(strSection, strIntItem, 0);
ASSERT(nValue == 1234);
上の例を実行すると
[テスト][テスト]
[1234] になるのですか?
■ このスレッドは過去ログ倉庫に格納されています