VB5中ObjectContext来自哪个库? [英] What library does ObjectContext come from in VB5?
问题描述
首先,让我本人对必须维护VB5代码发表make昧的评论:是的,这很可惜,但是我们能不能随便追随?谢谢.
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.
我不得不重新审视一些1998年编写的非常老的代码,自2003年以来一直没有被使用过.我遇到的问题是,我在此上遇到了编译错误:
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
VB5编译器抛出编译错误:用户定义的类型未定义
The VB5 compiler throws a compile error: User-defined type not defined
这当然不是用户定义的类型,而是某些库或其他库的一部分.我的问题是我不知道我可能缺少哪个库.该工作站是从旧的Windows 2000工作站重建而来的,并非所有库都已安装.我怀疑ObjectContext可能是某些版本的ADO(ActiveX数据对象)的一部分,目前仅安装了v2.1.
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?
推荐答案
您需要为"COM +服务类型库"(COMSVCS.DLL)添加对项目的引用
You need to add a reference to your project for "COM+ Services Type Library" (COMSVCS.DLL)
这篇关于VB5中ObjectContext来自哪个库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!