タイトル : Re^2: INIファイルから文字列の取得 投稿日 : 2008/09/22(Mon) 19:35 投稿者 : エドワード
ですよね、大変申し訳ございません。 しかし、今自己解決出来ました。 Declare Function GetPrivateProfileString Lib "KERNEL32.DLL" Alias "GetPrivateProfileStringA" ( _ ByVal lpAppName As String, ByVal lpKeyName As String, ByVal lpDefault As String, _ ByVal lpReturnedString As String, ByVal nSize As Integer, ByVal lpFileName As String) As Integer 宣言を上記から下記へ <DllImport("KERNEL32.DLL", CharSet:=CharSet.Auto)> _ Public Shared Function GetPrivateProfileString( _ ByVal lpAppName As String, _ ByVal lpKeyName As String, ByVal lpDefault As String, _ ByVal lpReturnedString As System.Text.StringBuilder, ByVal nSize As Integer, _ ByVal lpFileName As String) As Integer End Function 値格納用変数の宣言を下記にしました Dim strSqlFile As System.Text.StringBuilder strSqlFile = New System.Text.StringBuilder strSqlFile.Capacity = 256 |