!!动态链接库问题,高手们快来帮忙呀
ywcyj 2003-05-14 07:29:24 代码如下:67行出错
Imports System
Imports System.IO
Imports System.Runtime.InteropServices
Public Class test
Declare Sub PBMCAL Lib "PBM2.dll" Alias "_PBMCAL@52" (ByVal eta As Single, ByVal omeg As Single, ByVal radiu As Single, ByVal boverd As Single, ByVal weight As Single, ByVal psai As Single, ByVal kind As Integer, ByRef dt As Single, ByRef xtt As Single, ByVal psaiw2 As Single, ByVal Index As Integer, ByVal aett2 As Single, ByRef OResult As Single)
End Class
......
行 67: test.PBMCAL(eta / 10, omeg * 3.1415926 / 30, radiu / 2, boverd, weight / 9.8, psai, kind, dt(1), xtt(1), psaiw2, index2, aett2, OResult1(1))
错误信息:
未将对象引用设置到对象的实例。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.NullReferenceException: 未将对象引用设置到对象的实例。