谁帮我写一个ini

来源:百度知道 编辑:UC知道 时间:2024/07/07 21:38:32
我是双系统 xp (c disk)和 ubuntu (f disk)
前几天误删了boost.ini

现在进不去unbuntu了

谁帮我写了
100分 别抄
罗嗦 我要的是实实在在的答案

我写的xywhAPI有此功能并且同时加载很多不同状况的INI和保存INI

下载:
里面有相当详细的使用函数说明

不使用xywhAPI可以取xywhAPI的片段实现功能:

声明:
'-----------------------ini文件读写函数API声明
Private Declare Function GetPrivateProfileInt Lib "kernel32" Alias "GetPrivateProfileIntA" (ByVal lpApplicationName As String, ByVal lpKeyName As String, ByVal nDefault As Long, ByVal lpFileName As String) As Long
Private Declare Function GetPrivateProfileString Lib "kernel32" Alias "GetPrivateProfileStringA" (ByVal lpApplicationName As String, ByVal lpKeyName As Any, ByVal lpDefault As String, ByVal lpReturnedString As String, ByVal nSize As Integer, ByVal lpFileName As String) As Integer
Private Declare Function WritePrivateProfileString Lib "kernel32" Alias "WritePrivateProfileStringA" (ByVal lpApplicationName As String, ByVal lpKeyName As String, ByVal lpString As String, ByVal lpFileName As String) As Long
Private Declare Funct