用VB写了个DLL,然后用ASP调用,开始运行得很好,
后来,我增加了一些功能,在ASP调用时就出现:"类型不匹配 "的错误,
出现错误的是ASP里的"Set ah = Server.CreateObject("HAwbno.pickno")"这一句实在找不出出错的原因,又不方便把增加的部份删除来测试只能来这里请高手帮帮忙了请问这种情况一般是哪里出的问题?

解决方案 »

  1.   

    引用如下
    mscrosoft active server pages objectcontext object library
    mscrosoft activex data objects 2.5 library
    active DS type library
    active DS IIS namespace provider
    active ds iis extension dll
      

  2.   

    这样试试:Set ah = CreateObject("HAwbno.pickno")
      

  3.   

    楼上的,现在错误出现在下一行了,原来是60行,现在是61行,并且提示是:Microsoft VBScript 编译器错误 错误 '800a03f6' 缺少 'End' /iisHelp/common/500-100.asp,行242 HFHost 错误 '800a005b' 未设置对象变量或 With block 变量 /a/post_save.asp,行61 
      

  4.   

    我是这样的Public Function OnStartPage(PassedScriptingContext As ScriptingContext)
    Set MyScriptingContext = PassedScriptingContext
    Set MyApplication = MyScriptingContext.Application
    Set MyRequest = MyScriptingContext.Request
    Set MyResponse = MyScriptingContext.Response
    Set MyServer = MyScriptingContext.Server
    Set MySession = MyScriptingContext.Session
    End FunctionPublic Function OnEndPage()
    Set MyScriptingContext = Nothing
    Set MyApplication = Nothing
    Set MyRequest = Nothing
    Set MyResponse = Nothing
    Set MyServer = Nothing
    Set MySession = Nothing
    End Function