zoukankan      html  css  js  c++  java
  • C++ Windows API 读写INI文件

    BOOL WritePrivateProfileString(
      LPCTSTR lpAppName,  // INI文件中的一个字段名[节名]可以有很多个节名
      LPCTSTR lpKeyName,  // lpAppName 下的一个键名,也就是里面具体的变量名
      LPCTSTR lpString,   // 键值,也就是数据
      LPCTSTR lpFileName  // INI文件的路径
    );
    
    
    DWORD GetPrivateProfileString(
      LPCTSTR lpAppName,        // INI文件中的一个字段名[节名]可以有很多个节名
      LPCTSTR lpKeyName,        // lpAppName 下的一个键名,也就是里面具体的变量名
      LPCTSTR lpDefault,        // 如果lpReturnedString为空,则把个变量赋给lpReturnedString
      LPTSTR lpReturnedString,  // 存放键值的指针变量,用于接收INI文件中键值(数据)的接收缓冲区
      DWORD nSize,            // lpReturnedString的缓冲区大小
      LPCTSTR lpFileName        // INI文件的路径
    );
    
    
    UINT GetPrivateProfileInt(
      LPCTSTR lpAppName,  // INI文件中的一个字段名[节名]可以有很多个节名
      LPCTSTR lpKeyName,  // lpAppName 下的一个键名,也就是里面具体的变量名
      INT nDefault,       // 如果没有找到指定的数据返回,则把个变量值赋给返回值
      LPCTSTR lpFileName  // INI文件的路径
    );
  • 相关阅读:
    dom操作
    今天学到的知识点
    3.26随笔
    dom操作
    Ajax
    JSP、EL、JSTL
    Cookie和Session
    HttpServletResponse
    Servlet
    tomcat
  • 原文地址:https://www.cnblogs.com/azbane/p/10229019.html
Copyright © 2011-2022 走看看