VB编程经验总结,范畴:VB 文件名SourceDB.ini文件 Private Declare Function GetPrivateProfileString Lib "kernel32" Alias "GetPrivateProfileStringA" (ByVal lpApplicationName As String, ByVal lpKeyName As Any, ByVal lpDefault As String, ByVal lpReturnedString As String
'--------cIniFile.cls 代码---------------- '这里定义了一个cIniFile类 Option Explicit '// Private member that holds a reference to '// the path of our ini file Private strInI As String '// Win API Declares Private Declare Function WritePrivateProfileString _ L
'文件名SourceDB.ini文件 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
在 VB.Net 下读写 Ini 文件。必要的 WinAPI声明如下: Public Declare Function GetPrivateProfileInt Lib "kernel32" Alias "GetPrivateProfileIntA" (ByVal lpApplicationName As String, ByVal lpKeyName As String, ByVal nDefault As Integer, ByVal lpFileN