图书馆参考 [英] Library References

查看:76
本文介绍了图书馆参考的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

A2000 SP-3。 Win XP专业版。


我继承了一个A2k数据库,它引用了DAO和ADO

库。我是一个有图书馆的新手,所以我的问题

是,这两个图书馆可以在同一个项目中被选中并共存吗?


该应用程序肯定编译好,我不认为这将是一个快速的工作

转换为一个库或另一个。有关信息,如果我取消选择

我会收到很多编译错误。


非常感谢。

基思。

A2000 SP-3. Win XP Pro.

I''ve inherited an A2k database which references both DAO and ADO
libraries. I''m a bit of a newbie with libraries and so-on so my question
is, can the two libraries be selected and co-exist in the same project?

The app certainly compiles OK and I don''t think it would be a quick job
to convert to one library or the other. For info, if I de-select either
I get loads of compilation errors.

Many thanks.
Keith.

推荐答案



" Keith" <柯*** @ NOCARPkeithwilby.org.uk>在消息中写道

news:cj ********** @ hercules.btinternet.com ...

"Keith" <ke***@NOCARPkeithwilby.org.uk> wrote in message
news:cj**********@hercules.btinternet.com...
A2000 SP-3。 Win XP专业版。

我继承了一个引用DAO和ADO
库的A2k数据库。我有点像图书馆的新手,所以我的问题是,这两个图书馆可以在同一个项目中被选中并共存吗?

该应用当然可以编译好吧,我不认为转换到一个库或另一个库是一件快速的工作。有关信息,如果我取消选择
我会收到很多编译错误。

非常感谢。
基思。
A2000 SP-3. Win XP Pro.

I''ve inherited an A2k database which references both DAO and ADO
libraries. I''m a bit of a newbie with libraries and so-on so my question
is, can the two libraries be selected and co-exist in the same project?

The app certainly compiles OK and I don''t think it would be a quick job
to convert to one library or the other. For info, if I de-select either
I get loads of compilation errors.

Many thanks.
Keith.




是的,它们可以共存,而不是我会推荐它。听起来像一个食谱

因为混乱。如果引用了两个库,那么对象

声明可能是不明确的,它们必须是合格的,例如


Dim rs As DAO.Recordset


事实上,为了清楚起见,我总是限定所有

DAO / ADO对象的声明。



Yes, they can co-exist, not that I would recommend it. Sounds like a recipe
for mucho confusion. If both libraries are referenced, then where object
declarations could be ambiguous, they must be qualified e.g.

Dim rs As DAO.Recordset

In fact, for the sake of clarity, I always qualify declarations of all
DAO/ADO objects.


"布赖恩" < BC ** @ IHATESPAMclara.co.uk>在消息中写道

news:10 **************** @ damia.uk.clara.net ...
"Brian" <bc**@IHATESPAMclara.co.uk> wrote in message
news:10****************@damia.uk.clara.net...

基思 <柯*** @ NOCARPkeithwilby.org.uk>在消息中写道
新闻:cj ********** @ hercules.btinternet.com ...

"Keith" <ke***@NOCARPkeithwilby.org.uk> wrote in message
news:cj**********@hercules.btinternet.com...
A2000 SP-3。 Win XP专业版。

我继承了一个引用DAO和ADO
库的A2k数据库。我有点像图书馆的新手,所以我的问题是,这两个图书馆可以在同一个项目中被选中并共存吗?

该应用当然可以编译好吧,我不认为转换到一个库或另一个库是一件快速的工作。有关信息,如果我取消选择
我会收到很多编译错误。

非常感谢。
基思。
是的,它们可以共存,而不是我会推荐它。听起来像是一个
A2000 SP-3. Win XP Pro.

I''ve inherited an A2k database which references both DAO and ADO
libraries. I''m a bit of a newbie with libraries and so-on so my question
is, can the two libraries be selected and co-exist in the same project?

The app certainly compiles OK and I don''t think it would be a quick job
to convert to one library or the other. For info, if I de-select either
I get loads of compilation errors.

Many thanks.
Keith.
Yes, they can co-exist, not that I would recommend it. Sounds like a



配方,因为它太混乱了。如果两个库都被引用,那么对象
声明可能是不明确的,它们必须是合格的,例如

Dim rs As DAO.Recordset

实际上,对于为了清楚起见,我总是限定所有
DAO / ADO对象的声明。


recipe for mucho confusion. If both libraries are referenced, then where object
declarations could be ambiguous, they must be qualified e.g.

Dim rs As DAO.Recordset

In fact, for the sake of clarity, I always qualify declarations of all
DAO/ADO objects.




两个引用都没有错。我做了很多:DAO for

查询Access表和ADO查询SQL Server。


我同意你的建议,总是有资格申报。我这样做

即使我只有一个DAO参考集。


对于记录,2个模型中具有相同名称的对象列表是

连接,错误,错误,字段,字段,参数,参数,属性,

属性和记录集

-

Doug Steele,Microsoft Access MVP
http://I.Am/DougSteele

(请不要发电子邮件!)



There''s nothing wrong with having both references. I do it a lot: DAO for
queries against Access tables and ADO for queries against SQL Server.

I agree with your advice about always qualifying the declarations. I do this
even when I only have a DAO reference set.

For the record, the list of objects with the same names in the 2 models is
Connection, Error, Errors, Field, Fields, Parameter, Parameters, Property,
Properties and Recordset
--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


" Douglas J. Steele" < NOSPAM_djsteele@NOSPAM_canada.com>在消息中写道

新闻:KY ******************** @ rogers.com ...
"Douglas J. Steele" <NOSPAM_djsteele@NOSPAM_canada.com> wrote in message
news:KY********************@rogers.com...
<两个引用都没有错。我做了很多:针对Access表的DAO查询和针对SQL Server的查询的ADO。

There''s nothing wrong with having both references. I do it a lot: DAO for
queries against Access tables and ADO for queries against SQL Server.




如果你愿意,叫我Luddite,但是我几乎完全使用DAO对抗SQL

服务器。



Call me a Luddite if you will, but I almost exclusively use DAO against SQL
Server as well.


这篇关于图书馆参考的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆