VB5中的ObjectContext来自哪个库?
首先,让我本人对必须维护 VB5 代码做出强制性的尖刻评论:是的,这很可怜,但是我们可以直接切入正题吗?谢谢。
我不得不重新审视一些非常旧的代码,这些代码是 1998 年编写的,自 2003 年以来就没有被触及过。我遇到的问题是我遇到了一个编译错误:
Dim ObjCtx As ObjectContext
VB5 编译器抛出一个编译错误:User-已定义类型未定义
这当然不是用户定义类型,而是某个库或另一个库的一部分。我的问题是我不知道我可能缺少哪个库。该工作站是由旧的Windows 2000 工作站重建的,并且并非所有库都已安装。我怀疑 ObjectContext 可能是某些版本的 ADO(ActiveX 数据对象)的一部分,目前仅安装了 v2.1。
有没有老前辈还记得这件事?
First of all, let me myself make the obligatory snarky comment about having to maintain VB5 code: yes, it's pitiful, but can we please just cut to the chase? Thanks.
I am having to revisit some VERY old code that was written in 1998 and which hasn't been touched since 2003. The problem I am having is that I am getting a compile error on this:
Dim ObjCtx As ObjectContext
The VB5 compiler throws a compile error: User-defined type not defined
This is not of course a user-defined type, but is a part of some libary or another. My problem is that I don't know which library I might be missing. The workstation is reconstructed from an old Windows 2000 workstation, and not all libraries may have been installed. I am suspecting that ObjectContext might be a part of some version of ADO (ActiveX Data Objects), of which only v2.1 is currently installed.
Are there any old-timers out there who remember anything about this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要添加对项目的“COM+ 服务类型库”(COMSVCS.DLL) 的引用
You need to add a reference to your project for "COM+ Services Type Library" (COMSVCS.DLL)