谁帮我看看 555555555555
帮我看看啊 我用了kernel32.dll来读INI文件出错了
异常详细信息: System.NullReferenceException: 未将对象引用设置到对象的实例。
源错误:
[ DllImport ( "kernel32" ) ]
public static extern int GetPrivateProfileString ( string section ,
string key , string def , string retVal ,
int size , string filePath ) ;
行 69: while (j<5)
行 70: {
行 71: i[j]=GetPrivateProfileString ( strsection , strkey[j] ,
"无法读取对应数值!" , temp[j] , 255 , filepath );
strconnectionstring=strkey[j]"="+temp[j];