473,498 Members | 2,026 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

duplicating Multi Use COM like functionality in .NET

With a Multi-USe COM DLL object another applic. can get reference to it. -
And if that DLL's counter continue to have a least one reference, then
another application or reference to the DLL can exchange info with that DLL.
Could See the data in the DLL if the DLL exposed it ( like a list ).

What design pattern allows me similar functionality in .NET ?? - and is
there an ability to keep the "OBJECT" runnning if the reference count goes to
0 ??

--
Andrew
Nov 17 '05 #1
4 1473
In a similar idea, how would I duplicate the idea of an activeX.exe - where
another application can grab a shared object and read/write to it.

( By the way I need to do this without a service since I wont have
permissions to install a service - but I can register a DLL. )
--
Andrew
"andrewcw" wrote:
With a Multi-USe COM DLL object another applic. can get reference to it. -
And if that DLL's counter continue to have a least one reference, then
another application or reference to the DLL can exchange info with that DLL.
Could See the data in the DLL if the DLL exposed it ( like a list ).

What design pattern allows me similar functionality in .NET ?? - and is
there an ability to keep the "OBJECT" runnning if the reference count goes to
0 ??

--
Andrew

Nov 17 '05 #2
Andrew,

Do you need to expose this functionality to COM? If so, then you will
have to do this through COM+, setting the object pooling properties so that
you access the same shared object, and that the object doesn't die for a
very long time (you have to determine what the appropriate lifetime is).

If you only need .NET clients to attach to this, then I would recommend
you use remoting, creating a singleton server object.

You can not create an ActiveX EXE through COM interop in .NET.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"andrewcw" <an******@acw.com> wrote in message
news:43**********************************@microsof t.com...
With a Multi-USe COM DLL object another applic. can get reference to
it. -
And if that DLL's counter continue to have a least one reference, then
another application or reference to the DLL can exchange info with that
DLL.
Could See the data in the DLL if the DLL exposed it ( like a list ).

What design pattern allows me similar functionality in .NET ?? - and is
there an ability to keep the "OBJECT" runnning if the reference count goes
to
0 ??

--
Andrew

Nov 17 '05 #3
Yes thanks for reminding me about the limitations of COM clients. I was
actually llooking for something even lighter weight than a remote - it only
needs to run on the client machine. ( one non .NET app calls an C# exe with
pass params - then this shell app just would pass on the information to the
viewable 'logger' and then terminate ). While not very elegant the speed is
fast enough.

Non .NET (makes external call ) -> .net Console + pass parameters=> new info
..netConsole -> visibleGrid + pass parameters, [ visible grid appends new info]
..netConsole terminates

Non .NET app continues on.....
....repeats some time later

--
Andrew
"Nicholas Paldino [.NET/C# MVP]" wrote:
Andrew,

Do you need to expose this functionality to COM? If so, then you will
have to do this through COM+, setting the object pooling properties so that
you access the same shared object, and that the object doesn't die for a
very long time (you have to determine what the appropriate lifetime is).

If you only need .NET clients to attach to this, then I would recommend
you use remoting, creating a singleton server object.

You can not create an ActiveX EXE through COM interop in .NET.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"andrewcw" <an******@acw.com> wrote in message
news:43**********************************@microsof t.com...
With a Multi-USe COM DLL object another applic. can get reference to
it. -
And if that DLL's counter continue to have a least one reference, then
another application or reference to the DLL can exchange info with that
DLL.
Could See the data in the DLL if the DLL exposed it ( like a list ).

What design pattern allows me similar functionality in .NET ?? - and is
there an ability to keep the "OBJECT" runnning if the reference count goes
to
0 ??

--
Andrew


Nov 17 '05 #4
Oh I see NET remoting can also be configured like a com client... THANKS
--
Andrew
"andrewcw" wrote:
With a Multi-USe COM DLL object another applic. can get reference to it. -
And if that DLL's counter continue to have a least one reference, then
another application or reference to the DLL can exchange info with that DLL.
Could See the data in the DLL if the DLL exposed it ( like a list ).

What design pattern allows me similar functionality in .NET ?? - and is
there an ability to keep the "OBJECT" runnning if the reference count goes to
0 ??

--
Andrew

Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2009
by: Alex | last post by:
I need to duplicate some of the multi-page tiff and thumbnail viewing functionality found in the Microsoft Office Document Imaging application for an in-house company application. Does anyone...
1
4258
by: googlegrouper | last post by:
I'm using a Unicode sql script imported using OSQL. One of the values we are attempting to insert is a Registry Multi-String value by passing a string to a stored procedure. These Multi-String...
0
867
by: Don | last post by:
How do you duplicate functionality like a datasheet/continuous form in Access? Any good third party controls? Thanks
15
1789
by: Christopher Benson-Manica | last post by:
Is there a general mechanism to duplicate, or provide for the duplication of, objects? As an example, suppose I need to duplicate an array. I can accomplish this with array.slice( 0 ), but that's...
0
1052
by: rmli | last post by:
Duplicating a Database using RMAN http://quickdba.blogspot.com/2006/05/duplicating-database-using-rman_22.html
2
3860
by: ITistic | last post by:
Here's my predicament - I've got a client who I've written an extensive ASP.NET app for who needs the ability to print multi-page dynamic contracts in a format which will print properly (most...
1
1686
by: =?Utf-8?B?QU1lcmNlcg==?= | last post by:
Sorry this is so long winded, but here goes. Following the model of http://msdn2.microsoft.com/en-us/library/system.runtime.remoting.channels.ipc.ipcchannel.aspx I made a remote object using the...
6
3481
by: dbuchanan | last post by:
There are three parts to this 1.) How do I cascade menus? 2.) And, how do I cascade menus with a multi-select CheckBoxList?
0
915
by: Jonathan Wood | last post by:
When a GridView performs a row edit, edit controls appear without needing to display a different page, or, apparently, needing to refresh the existing page. Does anyone have tips on duplicating...
0
6993
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7162
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6881
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7375
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5456
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3088
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
650
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
287
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.