你最好参注册表直接进行操作。
win 2000 中这一函数与
GetPrivateProfileString
总是出错。
害得我只有用最笨的文件操作方式
读写 ini 文件。
网上有我的注册表类, 你可以查一下。是与题为 CRegistry 有关的。
win 2000 中这一函数与
GetPrivateProfileString
总是出错。
害得我只有用最笨的文件操作方式
读写 ini 文件。
网上有我的注册表类, 你可以查一下。是与题为 CRegistry 有关的。
Public Function sGetINI(sINIFile As String, sSection As String, sKey As String, sDefault As String) As String
Dim sTemp As String * 256
Dim nLengh As Integer
sTemp = Space(256)
nlength = GetPrivateProfileString(sSection, sKey, sDefault, sTemp, 255, sINIFile)
sGetINI = Left$(sTemp, nlength)
End Function
我查了帮助,说GetProfileString己不再支持
GetPrivateProfileString 仍可用!