共享申请 [英] Shared application

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

问题描述

你好,


在VB6中,如果我想创建一个共享应用程序,我会

创建一个ActiveX EXE。这将允许我公开

应用程序的对象,但只加载了1个实例。什么是

VB.NET中的等价物?我是否可以使用远程处理创建一个可与

通信的正常程序集?或者还有其他办法吗?


提前致谢。


尼克。


-

/ \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \\ \\ / \ / \ / \ / \ / \ / \ / \

无论如何。无论结果如何,你都会被改变。


Fergus - 2003年9月5日

/ \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \\ \\ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \

解决方案

嗨Nick,


要共享程序集,只需将其加载到GAC中,而不是每个

应用程序本地目录。但请注意,这需要强大的

命名。对于组装。


希望这会有所帮助,

Jan


" Nak" < a@a.com>在消息中写道

新闻:Oy ************** @ tk2msftngp13.phx.gbl ...

你好,应用程序的对象,但只加载了1个实例。 VB.NET中的等效是什么?我会创建一个可以使用远程处理与
进行通信的正常程序集吗?或者还有其他方法吗?

提前致谢。

尼克。

-

/ \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \\ \\ / \ / \ / \无论如何。无论结果如何,你都会被改变。

Fergus - 2003年9月5日

/ \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \


它也会安装在com +

-----原始消息-----
你好Nick,而不是eachapplications本地目录中。但请注意,这个
需要强大的。对于组装。

希望这会有所帮助,
Jan

Nak < a@a.com>在消息中写道
新闻:Oy ************** @ tk2msftngp13.phx.gbl ...

你好,
可以说我会创建一个ActiveX EXE。这将允许我公开应用程序的
对象,但只加载了1个实例。什么是
VB.NET中的等值?我是否可以使用远程处理创建一个可以
通信的正常程序集?或者还有其他方法吗?

提前致谢。

尼克。

-


/ \\ / / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ /



\ / \ / \\ \\ / \ / \ / \ / \ / \ / \ / \

"无论如何。无论结果如何,你都会被改变。

Fergus - 2003年9月5日


/ \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ /



\ / \ / \ / \ / \ / \ / \ / \\ \\ / \ / \





您好,

要共享程序集,只需将其加载到GAC中,而不是在每个
应用程序本地目录中。但请注意,这需要强烈的命名。用于汇编。




是的,我理解这一点,但它与ActiveX可执行文件不同。

使用ActiveX可执行文件你可以有一个应用程序的实例

启动并让其对象暴露并被其他应用程序使用,好像它是某种类型的DLL,但它有一个好处正在运行

申请。


我会举一个使用例子,


*我有一个共享的应用程序,可以根据其他应用程序的请求从互联网下载数据

,就像下载管理器一样,但每个

请求都是qued,所以只下载了1个一次。


*当第一次调用共享应用程序时,它被加载,除非它已经加载了
然后使用现有实例,而不是推出一个

新的。


*所有人都可以看到共享应用程序的属性

是consumi如果一个人要改变一个属性,那么消耗它的所有其他应用程序都可以看到变化。


我可以想到目前为止的一种方式,那就是使用远程处理,但是我不知道这对我想要的东西是否有点过分。当然,除非你说b $ b你可以将*任何*程序集加载到GAC中,然后让它们暴露出来的
对象?我没有尝试过这种方法,因为我不确定你是否可以获得



尼克。


-

/ \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \

无论如何。无论结果如何,你都会被改变。


Fergus - 2003年9月5日

/ \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \\ \\ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \


Hi there,

In VB6 if I wanted to make a shared application so to speak I would
create an ActiveX EXE. This would allow me to expose objects of the
application but only have 1 instance loaded. What is the equivilent in
VB.NET? Would I create a normal assembly that can be communicated with
using remoting? or are there other ways?

Thanks in advance.

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
"No matter. Whatever the outcome, you are changed."

Fergus - September 5th 2003
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\

解决方案

Hi Nick,

To share the assembly just have it loaded in the GAC, instead of in each
applications local directory. Mind however that this requires "strong
naming" for the assembly.

Hopes this helps,
Jan

"Nak" <a@a.com> wrote in message
news:Oy**************@tk2msftngp13.phx.gbl...

Hi there,

In VB6 if I wanted to make a shared application so to speak I would
create an ActiveX EXE. This would allow me to expose objects of the
application but only have 1 instance loaded. What is the equivilent in
VB.NET? Would I create a normal assembly that can be communicated with
using remoting? or are there other ways?

Thanks in advance.

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ "No matter. Whatever the outcome, you are changed."

Fergus - September 5th 2003
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\



will it also get installed in com+

-----Original Message-----
Hi Nick,

To share the assembly just have it loaded in the GAC, instead of in eachapplications local directory. Mind however that this requires "strongnaming" for the assembly.

Hopes this helps,
Jan

"Nak" <a@a.com> wrote in message
news:Oy**************@tk2msftngp13.phx.gbl...

Hi there,

In VB6 if I wanted to make a shared application so to speak I would create an ActiveX EXE. This would allow me to expose objects of the application but only have 1 instance loaded. What is the equivilent in VB.NET? Would I create a normal assembly that can be communicated with using remoting? or are there other ways?

Thanks in advance.

Nick.

--


/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/


\/\/\/\/\/\/\/\/\/\

"No matter. Whatever the outcome, you are changed."

Fergus - September 5th 2003


/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/


\/\/\/\/\/\/\/\/\/\


.



Hi there,

To share the assembly just have it loaded in the GAC, instead of in each
applications local directory. Mind however that this requires "strong
naming" for the assembly.



Yes, I understand this, but it is not the same as an ActiveX executable.
With an ActiveX executable you can have 1 instance of an application
launched and have its objects exposed and used by other applications as if
it were a DLL of some kind, but it had the benefit of being a running
application.

I''ll give you an example of the use,

* I have a shared application that downloads data from the internet
on request of other applications, just a like a download manager, but each
request is qued so only 1 is downloading at a time.

* When the shared application is first called it is loaded, unless it
is already loaded then the existing instance is used, instead of launching a
new one.

* The properties of the shared application are visible to all that
are consuming it, that being if one were to change a property, all of the
other applications consuming it would be able to see the change.

I can think of one way so far, and that is by using remoting, but I''m
not sure if this is a little overkill for what I wanted. Unless of course
you are saying that you can load *any* assembly into the GAC and have it''s
objects exposed? I haven''t tried this approach as I wasn''t sure that you
could.

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
"No matter. Whatever the outcome, you are changed."

Fergus - September 5th 2003
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\


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

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