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://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>

        凤庆县| 长宁县| 临高县| 莫力| 崇义县| 濮阳县| 沾益县| 揭阳市| 石屏县| 化德县| 陆良县| 五大连池市| 天柱县| 拜城县| 忻州市| 保亭| 板桥市| 孟津县| 井研县| 抚松县| 喜德县| 万安县| 平乡县| 开封市| 呈贡县| 兴义市| 莲花县| 岱山县| 繁峙县| 白水县| 焉耆| 金堂县| 尖扎县| 永吉县| 古丈县| 利辛县| 临泽县| 五峰| 合山市| 洮南市| 绥阳县|