DLL问题。 [英] DLL Question.

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

问题描述

经过大量研究后,我得出的结论是,我需要在这里张贴这个,希望得到一个可靠的答案。我正在寻找

创建一个能够在我的主题中提到的所有平台上使用的DLL(1.1框架,2.0框架,旧ASP)我是

希望能够通过2.0 .net类库创建这个DLL。

一旦创建它我想要能够引用这个DLL以及

1.1 .NET项目中的所有方法和属性以及旧的

1.1你可以添加引用但我总是不清楚是否

这是可能的使用2.0 DLL。我看到总是有问题

当在2.0中创建DLL时,在1.1中添加对DLL的引用。

任何人都能提供这个问题的合理答案吗?我正在寻找的理想

情况是2.0编码,然后在

其他地方使用它。有人有一个可靠的答案吗?

Alright after much researching, I''ve come to the conclusion that I
need to post this here hoping to get a solid answer. I''m looking to
create a DLL that is capable of being used on all platforms that I
mentioned in my subject (1.1 framework, 2.0 framework, old ASP) I''m
hoping to be able to create this DLL via a 2.0 .net class library.
Once its created I want the ability to reference this DLL along with
all its methods and properties in both 1.1 .NET projects and an old
ASP project. I know in regular ASP you can create.objects() and in
1.1 you can just add references but I''m always unclear whether or not
this is possible to do with a 2.0 DLL. I seen to always have problems
adding a reference to a DLL in 1.1 when the DLL was created in 2.0.
Can anyone provide a reasonable answer to this question? The ideal
situation i''m looking for is 2.0 coding and then using that in the
other places. Does anyone have a solid answer out there?

推荐答案


有没有人有那里有坚实的答案吗?
Does anyone have a solid answer out there?



您需要一个用VB解决方案创建的COM对象,如VB6,可以从.NET解决方案中调用

ASP.NET或其他.NET解决方案以及ASP 3.0或

低于COM对象。

You need a COM object created with COM solution like VB6 that can be called
from a .NET solution like ASP.NET or other .NET solutions and by ASP 3.0 or
lower that works with COM objects.


7月19日,3:54下午,先生。阿诺德" < MR。 Arn ... @ Arnold.comwrote:
On Jul 19, 3:54 pm, "Mr. Arnold" <MR. Arn...@Arnold.comwrote:

有人有一个可靠的答案吗?
Does anyone have a solid answer out there?



你需要一个使用像VB6这样的COM解决方案创建的COM对象,可以从ASP.NET或其他.NET解决方案中调用
.NET解决方案和ASP 3.0或

更低,适用于COM对象。


You need a COM object created with COM solution like VB6 that can be called
from a .NET solution like ASP.NET or other .NET solutions and by ASP 3.0 or
lower that works with COM objects.



好​​的,这意味着没有办法在.NET 2.0

框架项目中创建它,然后全部使用你说用COM

解决方案?你是说唯一的方法就是使用VB6

或者像VB6一样创建一个COM吗?感谢您提供额外的

信息

Ok so does that mean there is no way to create this in a .NET 2.0
framework project and then be used all over like you say with a COM
solution? Are you saying the only way to do this, would be to use VB6
or just create a COM like the way VB6 does? Thanks for any additional
information


Joe写道:
Joe wrote:

我正在寻找创建一个能够在我的主题中提到的所有

平台上使用的DLL(1.1框架,

2.0框架,旧ASP我希望能够通过2.0 .net类库创建这个DLL


I''m looking to create a DLL that is capable of being used on all
platforms that I mentioned in my subject (1.1 framework,
2.0 framework, old ASP) I''m hoping to be able to create this DLL
via a 2.0 .net class library.



然后你运气不好。


COM应用程序(ASP)可以加载Fx2.0程序集。

Fx2.0应用程序也可以。

但是Fx1.1应用程序/不会/加载Fx2.0程序集。

Then you''re out of luck.

A COM application (ASP) can load Fx2.0 assemblies.
So can an Fx2.0 application.
But an Fx1.1 application /will not/ load an Fx2.0 assembly.


一旦创建它我想要能够引用这个DLL以及

1.1 .NET项目中的所有方法和属性以及旧的

ASP项目。
Once its created I want the ability to reference this DLL along with
all its methods and properties in both 1.1 .NET projects and an old
ASP project.



然后你要在Fx1.1中构建它。

FX1.1和Fx2.0应用程序将能够加载它。

从ASP开始工作可能更成问题,因为

从COM到.Net的Inter-Op'到达"棘手"当你在主机上安装了多个

框架时。 COM总是会尝试加载

/ latest / one(Fx2.0),即使你/可能/不想要它。

Then you''re going to /have/ to build it in Fx1.1.
Both FX1.1 and Fx2.0 applications will be able to load it.
Getting it to work from ASP may be more of an issue, because
Inter-Op''ing from COM to .Net gets "tricky" when you have multiple
Frameworks installed on the host. COM will always try to load the
/latest/ one (Fx2.0) even though you /may/ not want it to.


当在2.0中创建DLL时,我发现在1.1

中添加对DLL的引用总是有问题。
I seen to always have problems adding a reference to a DLL in 1.1
when the DLL was created in 2.0.



这是轻描淡写 - 根本不可能(AFAIK)。


HTH,

Phill W.

That''s an understatement - it is simply not possible (AFAIK).

HTH,
Phill W.


这篇关于DLL问题。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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