您的位置:程序门 -> vb -> 资源



vb调试时能正常运行,为什么编译成dll就运行不正常了呢?


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


vb调试时能正常运行,为什么编译成dll就运行不正常了呢?
发表于:2007-02-01 16:48:17 楼主
下面是去掉outlook警告框的一个函数代码,引用了outlook   security   manager,dll的时候,总提示类型不正确,搞不明白。忘指教!  
      ' ' ' '去掉提示框
public   function   clearsecurityproc(byref   outlookapp   as   variant)   as   boolean
  on   error   goto   errhandle
'         set   outlookapp   =   objoa
        tmp.connectto   outlookapp
        tmp.disableoomwarnings   =   true
        tmp.disablecdowarnings   =   true
        tmp.disablesmapiwarnings   =   true
        clearsecurityproc   =   true
        exit   function
errhandle:
        clearsecurityproc   =   false
        msgbox   err.description
end   function


快速检索

最新资讯
热门点击