兼容性图书馆...... [英] Compitbility Library......

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

问题描述

我下载了几个看起来非常有趣的控件 - 但它们用于

VB6。


当我查看MSVS的帮助时,我在这个主题上找到的所有内容都告诉他们这是一个兼容性库,它的目的是什么。但似乎无法在
上找到任何关于如何访问它的内容。


有什么想法吗?


TIA


如果您使用过以前版本的Visual Basic,您会注意到

Visual Basic .NET引入了对Visual Basic语言的一些更改

并且一些熟悉的功能似乎已经消失了。这些更改

是必要的,以使Visual Basic符合.NET

平台和通用语言规范(CLS)。


当Visual Basic 6.0应用程序升级到Visual Basic .NET时,由于语法或架构

的差异,某些代码的转换是不可能的。出于这个原因,Visual Basic 6.0中的函数
兼容性库(Microsoft.VisualBasic.Compatibility)用于

允许代码在Visual Basic .NET中运行而不需要需要广泛的

修改。这些函数模仿Visual Basic 6.0行为,而

仍然符合通用语言规范。


注意Visual Basic 6.0兼容性库中的函数是

仅供升级工具使用。虽然在编写新代码时可以使用

这个库,但无法保证在将来的Visual Basic版本中支持



另请参阅


-


RDI


(删除感叹号电子邮件地址)

解决方案

我能够找到将VB6应用程序升级到VB.Net的演练。但是 -

需要在我的电脑上安装VB6。


UGH!如果我有VB6,我就不需要升级了!


-


RDI


(从电子邮件地址中删除惊叹号)


" RDI" < RDI @ WriteMe.com>!在消息中写道

新闻:eI ************** @ TK2MSFTNGP10.phx.gbl ...

我下载了几个看起来非常有趣的控件 - 但对于VB6来说它们是


当我查看MSVS的帮助时,我在这个主题上找到的所有内容都告诉他们
他们是兼容性库和它的目的是什么。但是看起来无法获得任何关于如何获取它的东西。看似什么想法?

TIA

如果你有使用以前版本的Visual Basic,您会注意到Visual Basic .NET引入了对Visual Basic语言的一些更改,而且一些熟悉的函数似乎已经消失了。为了使Visual Basic符合.NET
平台和通用语言规范(CLS),这些更改是必要的。

当Visual Basic 6.0应用程序升级到Visual Basic .NET,由于语法或架构上的差异,某些代码的转换是不可能的。因此,Visual Basic 6.0
兼容性库(Microsoft.VisualBasic.Compatibility)中的函数用于允许代码在Visual Basic .NET中运行,而无需进行大量的修改。这些函数模仿Visual Basic 6.0行为,同时仍然符合通用语言规范。

警告提供Visual Basic 6.0兼容性库中的函数仅供升级工具使用。尽管在编写新代码时可以使用
,但无法保证在将来的Visual Basic版本中支持它。
另请参阅
-

RDI

(从电子邮件地址中删除感叹号)



< BLOCKQUOTE>" RDI" < RDI @ WriteMe.com>! schrieb

我能够找到将VB6应用程序升级到VB.Net的演练。
但是 - 它需要在我的电脑上安装VB6。
UGH!如果我有VB6,我不需要升级!



如果你没有VB6,你就没有升级项目。 ;-)开玩笑

,我知道你有来自其他地方的来源。


我认为必须满足一些最低要求才能升级

项目。我不确定是否真的需要安装VB6,但我认为如果引用的COM库缺少
,项目显然不可升级。


关于兼容性库:如果在安装VB / VS.NET时未安装

VB6,是否真的没有安装?在添加

参考中对话框,没有Microsoft Visual Basic .NET兼容性

运行时?

-

Armin
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/ learn2quote.html


*" RDI" < RDI @ WriteMe.com>! scripsit:

我能够找到将VB6应用程序升级到VB.Net的演练。但是 - 它需要在我的电脑上安装VB6。

UGH!如果我有VB6,我就不需要升级!




忘记updrade向导。即使在

框架中有托管替换,您的应用程序仍将使用旧的

ActiveX组件。


; - >


-

Herfried K. Wagner [MVP]

< http://www.mvps.org / dotnet>


I download a couple of controls that look VERY interesting--but they are for
VB6.

When I look through MSVS''s help, all I can find on the subject tells that
their is a compatiblity library and what it''s purpose is. But can''t seem to
find anything on HOW to access it.

Any ideas?

TIA

If you have used previous versions of Visual Basic, you will notice that
Visual Basic .NET introduces several changes to the Visual Basic language
and that some familiar functions have seemingly disappeared. These changes
were necessary in order to make Visual Basic compliant with the .NET
Platform and the common language specification (CLS).

When a Visual Basic 6.0 application is upgraded to Visual Basic .NET, the
conversion of some code is impossible due to syntactical or architectural
differences. For this reason, functions in the Visual Basic 6.0
Compatibility library (Microsoft.VisualBasic.Compatibility) are used to
allow the code to run in Visual Basic .NET without the need for extensive
modification. These functions mimic Visual Basic 6.0 behavior while
remaining compliant with the common language specification.

Caution Functions in the Visual Basic 6.0 Compatibility library are
provided only for use by the upgrading tools. Although it is possible to use
this library when writing new code, there is no guarantee that it will be
supported in future versions of Visual Basic.
See Also

--

RDI

(remove the exclamation from the email address)

解决方案

I was able to find a walk-through for upgrading VB6 app to VB.Net. BUT--it
requires VB6 be installed on my PC.

UGH! If I had VB6, I wouldn''t need to upgrade!

--

RDI

(remove the exclamation from the email address)

"RDI" <RDI!@!WriteMe.com> wrote in message
news:eI**************@TK2MSFTNGP10.phx.gbl...

I download a couple of controls that look VERY interesting--but they are for VB6.

When I look through MSVS''s help, all I can find on the subject tells that
their is a compatiblity library and what it''s purpose is. But can''t seem to find anything on HOW to access it.

Any ideas?

TIA

If you have used previous versions of Visual Basic, you will notice that
Visual Basic .NET introduces several changes to the Visual Basic language
and that some familiar functions have seemingly disappeared. These changes
were necessary in order to make Visual Basic compliant with the .NET
Platform and the common language specification (CLS).

When a Visual Basic 6.0 application is upgraded to Visual Basic .NET, the
conversion of some code is impossible due to syntactical or architectural
differences. For this reason, functions in the Visual Basic 6.0
Compatibility library (Microsoft.VisualBasic.Compatibility) are used to
allow the code to run in Visual Basic .NET without the need for extensive
modification. These functions mimic Visual Basic 6.0 behavior while
remaining compliant with the common language specification.

Caution Functions in the Visual Basic 6.0 Compatibility library are
provided only for use by the upgrading tools. Although it is possible to use this library when writing new code, there is no guarantee that it will be
supported in future versions of Visual Basic.
See Also

--

RDI

(remove the exclamation from the email address)



"RDI" <RDI!@!WriteMe.com> schrieb

I was able to find a walk-through for upgrading VB6 app to VB.Net.
BUT--it requires VB6 be installed on my PC.

UGH! If I had VB6, I wouldn''t need to upgrade!


If you don''t have VB6, you won''t have projects to upgrade. ;-) Kidding
only, I know you have the source from somewhere else.

I think some minimum requirements must be met to be able to upgrade a
project. I''m not sure whether VB6 really needs to be installed, but I think
that projects are obviously not upgradable if referenced COM-libraries are
missing.

Concerning the compatibility library: Has it really not been installed if
VB6 was not installed at the time you installed VB/VS.NET? In the "add
reference" dialog, there is no "Microsoft Visual Basic .NET compatibility
runtime"?
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html


* "RDI" <RDI!@!WriteMe.com> scripsit:

I was able to find a walk-through for upgrading VB6 app to VB.Net. BUT--it
requires VB6 be installed on my PC.

UGH! If I had VB6, I wouldn''t need to upgrade!



Forget the updrade wizard. You application will still use old
ActiveX components even if there is a managed replacement in the
framework available.

;->

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>


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

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