在c#中定定义下面的API函数后,调用读取ini文件的内容,断点单步跟踪为什么老提示"未将对象的引用设置到对象的实例" ,但是直接运行却能跳过,但读取的项是null://定义获取ini配置文件API
[DllImport("kernel32")]
public static extern long GetPrivateProfileString(string lpApplicationName,object lpKeyName , string  lpDefault,string lpReturnedString,long nSize,string lpFileName);//从MaskConvert.ini读入生成inputfile的路径
iret = MaskInterface.GetPrivateProfileString("General", "Maskconvert_path","",tmpbuf[255], 79,fullPath);