在VB6中使用.NET框架? [英] use NET framwork in VB6?

查看:75
本文介绍了在VB6中使用.NET框架?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个VB6应用程序,它使用SQLServer2005连接来存储/检索数据。我希望(我认为)能够访问某些(某些)服务器事件。似乎这是可行的

如果

我可以实例化SQLConnector类并在我的

VB6应用程序中使用它的一些方法。我的问题:我可以在VB6应用程序中使用.NET框架吗?如果

是的,那么我在哪里可以获得有关这是如何实现的信息(书籍,教程等)

抱歉,转换这个应用程序到NET是出于商业原因无法实现的。

谢谢,

jack

I have a VB6 app that uses SQLServer2005 connection to store/retrieve data. I
want (I think) to get access to a(some) Server events. Seems this is doable
if
I can instantiate the SQLConnector Class and use some of it''s methods in my
VB6 app. My question: can I use the NET framwork from within a VB6 app? If
yes, then where can I get info (book,tutorial,etc.) on how this is
accomplished.
Sorry, converting this app to NET is not possible for business reasons.
thanks,
jack

推荐答案

您可以编写一个Vb.net程序来包装您想要的框架功能,并通过COM向您的VB6程序公开此功能。

-

Terry

" hushtech"写道:
You can write a Vb.net program that ''wraps'' the framework functionality that
you want and exposes this functionality through ''COM'' to your VB6 programs.
--
Terry
"hushtech" wrote:

我有一个VB6应用程序,它使用SQLServer2005连接来存储/检索数据。我希望(我认为)能够访问某些(某些)服务器事件。似乎这是可行的

如果

我可以实例化SQLConnector类并在我的

VB6应用程序中使用它的一些方法。我的问题:我可以在VB6应用程序中使用.NET框架吗?如果

是的,那么我在哪里可以获得有关这是如何实现的信息(书籍,教程等)

抱歉,转换由于商业原因,这个应用程序是不可能的。

谢谢,

杰克
I have a VB6 app that uses SQLServer2005 connection to store/retrieve data. I
want (I think) to get access to a(some) Server events. Seems this is doable
if
I can instantiate the SQLConnector Class and use some of it''s methods in my
VB6 app. My question: can I use the NET framwork from within a VB6 app? If
yes, then where can I get info (book,tutorial,etc.) on how this is
accomplished.
Sorry, converting this app to NET is not possible for business reasons.
thanks,
jack


COM在这种情况下是你的朋友


只需在具有COM功能的dll中编写所有事件逻辑,(别忘了

创建一个公共子新)< br $>
问候


米歇尔

" hushtech" < hu ****** @ discuss.microsoft.comschreef in bericht

news:7E ********************** ************ @ microsof t.com ...
COM is your friend in this situation

Just write all the event logic in a COM capable dll , ( do not forget to
create a public sub new )
regards

Michel
"hushtech" <hu******@discussions.microsoft.comschreef in bericht
news:7E**********************************@microsof t.com...

>我有一个VB6应用程序,它使用SQLServer2005连接来存储/检索数据。

希望(我认为)能够访问(某些)服务器事件。似乎这是

可行

如果

我可以实例化SQLConnector类并使用它的一些方法

我的

VB6应用程序。我的问题:我可以在VB6应用程序中使用.NET框架吗?

如果

是的,那么我在哪里可以获得有关如何信息(书籍,教程等)的信息这是

已经完成。

很抱歉,出于商业原因,将此应用转换为NET是不可能的。

谢谢,

jack
>I have a VB6 app that uses SQLServer2005 connection to store/retrieve data.
I
want (I think) to get access to a(some) Server events. Seems this is
doable
if
I can instantiate the SQLConnector Class and use some of it''s methods in
my
VB6 app. My question: can I use the NET framwork from within a VB6 app?
If
yes, then where can I get info (book,tutorial,etc.) on how this is
accomplished.
Sorry, converting this app to NET is not possible for business reasons.
thanks,
jack



谢谢Terry,

我刚刚安装了VB 2005所以我可以写一个vb.net app(希望如此)我正在寻找

功能。我从你的评论中推断出通过''COM''将这个

功能暴露给你的VB6程序在.net中有一些明显的

方法。我听说有人这样做,所以必须有一个食谱。如果你能指出一个解释发生了什么的教程

我真的很赞赏b $ b很感激它。

问候,杰克
Terry写道:
Thanks Terry,
I''ve just installed VB 2005 so I can write a vb.net app (hopefully) with the
functionality I''m looking for. I infer from your comment "and exposes this
functionality through ''COM'' to your VB6 programs" that there is some obvious
method for doing this in .net. I''ve heard of people doing this so there must
be a ''recipe''. If you can point to a tutorial that explains what goes on
I''d really
appreciate it.
regards, jack
"Terry" wrote:

您可以编写一个Vb.net程序,包装您想要的框架功能

并公开此功能通过''COM''到您的VB6程序。

-

Terry


" hushtech"写道:
You can write a Vb.net program that ''wraps'' the framework functionality that
you want and exposes this functionality through ''COM'' to your VB6 programs.
--
Terry
"hushtech" wrote:

我有一个VB6应用程序,它使用SQLServer2005连接来存储/检索数据。我希望(我认为)能够访问某些(某些)服务器事件。似乎这是可行的

如果

我可以实例化SQLConnector类并在我的

VB6应用程序中使用它的一些方法。我的问题:我可以在VB6应用程序中使用.NET框架吗?如果

是的,那么我在哪里可以获得有关这是如何实现的信息(书籍,教程等)

抱歉,转换出于商业原因,这个应用程序不能用于.NET。

谢谢,

jack
I have a VB6 app that uses SQLServer2005 connection to store/retrieve data. I
want (I think) to get access to a(some) Server events. Seems this is doable
if
I can instantiate the SQLConnector Class and use some of it''s methods in my
VB6 app. My question: can I use the NET framwork from within a VB6 app? If
yes, then where can I get info (book,tutorial,etc.) on how this is
accomplished.
Sorry, converting this app to NET is not possible for business reasons.
thanks,
jack


这篇关于在VB6中使用.NET框架?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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