调用dll中函数出现访问0地址错误
raised too many consecutive exceptions我在dll中写了一个函数openfile(filename:pchar)函数
在其他程序中调用
 myfilename:=pchar(extractfilepath(application.ExeName)+'answer\'+ComBNum.Text+'.ods');
 try
  OpenFile(myfilename);
 except
  messagebox(handle,'没有文件可以打开','警告',MB_OK);出现上述错误,请帮忙!