1. <ul id="0c1fb"></ul>

      <noscript id="0c1fb"><video id="0c1fb"></video></noscript>
      <noscript id="0c1fb"><listing id="0c1fb"><thead id="0c1fb"></thead></listing></noscript>

      99热在线精品一区二区三区_国产伦精品一区二区三区女破破_亚洲一区二区三区无码_精品国产欧美日韩另类一区

      RELATEED CONSULTING
      相關咨詢
      選擇下列產(chǎn)品馬上在線溝通
      服務時間:8:30-17:00
      你可能遇到了下面的問題
      關閉右側工具欄

      新聞中心

      這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
      VC中讀寫INI文件

      在VC2015中讀寫INI文件,文件以ANSI格式保存,如果以UTF-8保存,可能會產(chǎn)生亂碼。

      創(chuàng)新互聯(lián)專注于成都做網(wǎng)站、網(wǎng)站建設、外貿營銷網(wǎng)站建設、網(wǎng)頁設計、網(wǎng)站制作、網(wǎng)站開發(fā)。公司秉持“客戶至上,用心服務”的宗旨,從客戶的利益和觀點出發(fā),讓客戶在網(wǎng)絡營銷中找到自己的駐足之地。尊重和關懷每一位客戶,用嚴謹?shù)膽B(tài)度對待客戶,用專業(yè)的服務創(chuàng)造價值,成為客戶值得信賴的朋友,為客戶解除后顧之憂。

      	LPCTSTR  strfile = _T(".//config.ini");
      	TCHAR value[255] = { 0 };
      	//讀鍵值
      	GetPrivateProfileString(
      		_T("ui"),
      		_T("button1"), 
      		_T("default"),
      		value,
      		200,
      		strfile);
      
      	//寫鍵值對
      	WritePrivateProfileString(_T("UI"), _T("button1"), _T("啟動"), strfile);
      	
      	//讀整數(shù)
      	int left = GetPrivateProfileInt(_T("UI"), _T("left"), 0, strfile);
      	CString strleft;
      	strleft.Format(_T("%d"),left);
      	
      	//讀出某節(jié)的所有鍵值對
      	TCHAR  chSection[1000];
      	GetPrivateProfileSection(_T("UI"), chSection, 200, strfile);
      	CStringArray list;
      	int len;
      	TCHAR *pBuf = chSection;
      	while ((len = wcslen(pBuf)) > 0)
      	{
      		list.Add(pBuf);
      		pBuf += len + 1;
      	}
      
      	//讀出某節(jié)的所有鍵名
      	TCHAR  chSectionName[1000];
      	GetPrivateProfileSectionNames(chSectionName, 200, strfile);
      	CStringArray list1;
      	int len1;
      	TCHAR *pBuf1 = chSectionName;
      	while ((len1 = wcslen(pBuf1)) > 0)
      	{
      		list1.Add(pBuf1);
      		pBuf1 += len1 + 1;
      	}

      文章標題:VC中讀寫INI文件
      文章來源:http://www.ef60e0e.cn/article/posgej.html
      99热在线精品一区二区三区_国产伦精品一区二区三区女破破_亚洲一区二区三区无码_精品国产欧美日韩另类一区
      1. <ul id="0c1fb"></ul>

        <noscript id="0c1fb"><video id="0c1fb"></video></noscript>
        <noscript id="0c1fb"><listing id="0c1fb"><thead id="0c1fb"></thead></listing></noscript>

        达尔| 平利县| 东兰县| 宝丰县| 庆城县| 莱芜市| 凤山市| 庆元县| 新密市| 汽车| 永丰县| 河东区| 兴化市| 武山县| 屏东县| 洪雅县| 虞城县| 修水县| 伊春市| 西和县| 肃宁县| 织金县| 通河县| 长岛县| 渝中区| 家居| 隆尧县| 富宁县| 延安市| 志丹县| 阳信县| 高青县| 七台河市| 龙海市| 固安县| 宝丰县| 翁源县| 盘山县| 井陉县| 宜城市| 姜堰市|