【发布时间】:2012-06-15 11:56:47
【问题描述】:
我的DLLImport(Delphi DLL)与 Winform 应用程序配合良好,但我的 ASP.net WebForm 应用程序(在 IIS 7 上)出现异常。
谁能告诉我为什么以及如何处理它?
[DllImport("DLL_YINLIAN_INTERFACE.dll", EntryPoint = "YL_SetParam", SetLastError = true, CharSet = CharSet.Unicode, ExactSpelling = true, CallingConvention = CallingConvention.StdCall)]
static extern int YL_SetParam(int iParamIndex, byte[] ucParamBuffer);
这是调试时的异常:
System.Runtime.InteropServices.SEHException (0x80004005):
External component has thrown an exception.
at JFTHardAPI.SandTran.YL_SetParam(Int32 iParamIndex, Byte[] ucParamBuffer)
【问题讨论】:
标签: asp.net winforms dllimport