【发布时间】:2012-10-14 15:17:59
【问题描述】:
我正在尝试创建一个可在我正在构建的 VBA 项目中访问的 .NET 类库。我希望能够将 dao.recorset 对象作为参数传递给我的 .net 类库中的公共函数。
我的代码类似于
Public Sub PassDaoItem(item as DAO.recordSet)
TODO: [Code Here]
End Sub
当我使用 regasm 注册对象时,我收到以下错误:
Error
: Type library exporter cannot load type 'DAO.Recordset' (error: System.IO.FileN
otFoundException: Could not load file or assembly 'Interop.DAO, Version=5.0.0.0,
Culture=neutral, PublicKeyToken=5db0597a00edd538' or one of its dependencies. T
he system cannot find the file specified.).
对我如何做到这一点有什么建议吗?
【问题讨论】:
标签: vb.net vba com ms-access-2007 dao