Delphi 调试Dll报错 通过GetLastError显示错误信息。

LibHandle := LoadLibrary('c:\windows\system32\SpcClass.dll');

ShowMessage(SysErrorMessage(GetLastError));