zoukankan      html  css  js  c++  java
  • 读写INI配置文件。

    核心函数:

    写入.ini文件:bool WritePrivateProfileString(LPCTSTR lpAppName,//INI文件中的一个字段名

                            LPCTSTR lpKeyName,//lpAppName 下的一个键名,也就是里面具体的变量名

                            LPCTSTR lpString,//是键值,也就是变量的值, 必须为LPCTSTR或CString类型

                              LPCTSTR lpFileName);//完整的INI文件路径名

    读取.ini文件:DWORD GetPrivateProfileString(LPCTSTR lpAppName,//INI文件中的一个字段名

                              LPCTSTR lpKeyName,//lpAppName 下的一个键名,也就是里面具体的变量名

                              LPCTSTR lpDefaut,//如果没有其前两个参数值,则将此值赋给变量

                               LPSTR lpReturnedString,//接收INI文件中的值的CString对象,即接收缓冲区

                             DWORD nSize,//接收缓冲区的大小

                              LPCTSTR lpFileName);//完整的INI文件路径名

    ××××××××××××××××××××××××××××××××××××××××××××××××××××

  • 相关阅读:
    Networking
    Table of Contents
    Table of Contents
    Jersey(1.19.1)
    Jersey(1.19.1)
    11.Container With Most Water---两指针
    85.Maximal Rectangle---dp
    42.Trapping Rain Water---dp,stack,两指针
    84.Largest Rectangle in histogram---stack
    174.Dungeon Game---dp
  • 原文地址:https://www.cnblogs.com/wenluderen/p/4770267.html
Copyright © 2011-2022 走看看