zoukankan      html  css  js  c++  java
  • paip.c++读写ini文件.

    paip.c++读写ini文件.


     作者Attilax ,  EMAIL:1466519819@qq.com 
    来源:attilax的专栏
    地址:http://blog.csdn.net/attilax


    #include <string.h>
    #include <iostream>
    #include <Windows.h>
    #include <tchar.h>
     #include <QtCore>
     #include <QDebug>
    using namespace std;
    #define UNICODE
    #include "qdebughidec9.cpp"
    /**
     * @brief main
     * @param argv
     * @param argc
     * @return
     */
    int main(int argv,char **argc)
    {
    //随时随地为我们服务的全局对象myout
    PrintAti<<"ttttt------";
        //const char[]
     //   qDebugHideC9 n=new    qDebugHideC9("aa");
                 LPCWSTR str=L"c:\\FileName.ini";
               qDebug()<<"----ret:  "<<str;
         WritePrivateProfileString(L"SegmentOne",L"Sex", L"Man", str );


         /*
          *[SegmentOne]
    Sex=Man
          */


    /*QString ret = QString::fromWCharArray(path);
    qDebug()<<"----ret:  "<<ret;*/
    //QString ret = QString::from(path);
    //qDebug()<<"----ret:  "<<ret;
      //  delete [] lpPath;
         printf("---end---");
         cout<<"";
        return 0;
    }


    -----------------------


    [SegmentOne]
    Sex=Man







  • 相关阅读:
    A1132 Cut Integer (20分)
    A1131 Subway Map (30分)
    A1130 Infix Expression (25分)
    A1129 Recommendation System (25分)
    A1128 N Queens Puzzle (20分)
    arm指令集
    韦东山视频地址
    汇编知识
    emacs 使用教程
    ip
  • 原文地址:https://www.cnblogs.com/attilax/p/15199514.html
Copyright © 2011-2022 走看看