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

dfg1478 2007-02-01 04: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
...全文
200 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

1,066

社区成员

发帖
与我相关
我的任务
社区描述
VB 资源
社区管理员
  • 资源
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧