473,486 Members | 2,116 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Shared Methods In A Class

I have an application that has various libraries. One of them I use
shared methods in a class A to have all libriares access these methods.
This seems to work with no problems.

However, I am trying to develop some type of object model to allow
third party applications to modify/control certain features of my
application. To do this the third application needs to access the
shared methods of class A. But it is not working. The methods return
blank values indicating that it is a separate instance of class A.

How can another application access this same class A.

I would also like to take it another step further. Two users on the
same machine can access my application at the same time. There would
then be two difference instances of class A. Which would be OK. But
when then third party application tries to access the shared methods of
class A which one would it get. Ideally, a box would popup showing the
two different users, select the right one and access that particular
class A.

Any thoughts would greatly be appreciated.

Apr 11 '06 #1
3 958
> I have an application that has various libraries. One of them I use
shared methods in a class A to have all libriares access these
methods.
This seems to work with no problems.
However, I am trying to develop some type of object model to allow
third party applications to modify/control certain features of my
application. To do this the third application needs to access the
shared methods of class A. But it is not working. The methods return
blank values indicating that it is a separate instance of class A.

How can another application access this same class A.

I would also like to take it another step further. Two users on the
same machine can access my application at the same time. There would
then be two difference instances of class A. Which would be OK. But
when then third party application tries to access the shared methods
of class A which one would it get. Ideally, a box would popup showing
the two different users, select the right one and access that
particular class A.

Any thoughts would greatly be appreciated.


It sounds like you need to look into opening a remoting channel in your application
to allow other applications to talk to it. You can host the channel in your
application, in a centralized windows service that the third party app speaks
to as well as your application, or in a web service (which might be better
for the third party if they are external).

Jim Wooley
http://devauthority.com/blogs/jwooley
Apr 11 '06 #2
In the COM days, we would use an ActiveX.exe to share information across
users. Noadays, while the idea is the same, you have more options.
(Remoting, Web Services, COM+).

Choose the complexity and trade-offs you prefer and begin to hurt your
brain.

<ad*******@sympatico.ca> wrote in message
news:11**********************@v46g2000cwv.googlegr oups.com...
I have an application that has various libraries. One of them I use
shared methods in a class A to have all libriares access these methods.
This seems to work with no problems.

However, I am trying to develop some type of object model to allow
third party applications to modify/control certain features of my
application. To do this the third application needs to access the
shared methods of class A. But it is not working. The methods return
blank values indicating that it is a separate instance of class A.

How can another application access this same class A.

I would also like to take it another step further. Two users on the
same machine can access my application at the same time. There would
then be two difference instances of class A. Which would be OK. But
when then third party application tries to access the shared methods of
class A which one would it get. Ideally, a box would popup showing the
two different users, select the right one and access that particular
class A.

Any thoughts would greatly be appreciated.

Apr 11 '06 #3
Thanks for the input. I like my brain just the way it is. I think I
will pass on my ideas.

Apr 12 '06 #4

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

Similar topics

10
3516
by: John Brock | last post by:
I have a base class with several derived classes (I'm writing in VB.NET). I want each derived class to have a unique class ID (a String), and I want the derived classes to inherit from the base...
7
1626
by: Mark Kamoski | last post by:
Hi Everyone-- Please help. What are the implications, (in terms of memory, application footprint, resource use, threading, and so forth), of using Shared methods? These Shared classes raise...
14
6288
by: Joe Fallon | last post by:
I am trying to build a Data Access Layer for a SQL Server back end. My class has a number of methods in it. The constructor takes a connection string. I currently have to instantiate an object...
33
3425
by: Joe Fallon | last post by:
1. I have a Base class that has a certain amount of functionality. 2. Then I have a CodeSmith generated class that inherits from the Base class and adds functionality. 3. Since I want to be able...
5
11564
by: Erik Cruz | last post by:
Hello! I have read some threads discussing the fact that a module is in reality a shared class. If I try to create a Public Shared Class in vb.net I receive a compile error. Why? If I can't...
8
1257
by: gemel | last post by:
I have been reading sime material in .NET that throws some doubt on my understanding of shared procedures. With regard to object programming I assumed that variables declared within a class were...
2
2610
by: Elephant | last post by:
Hello, question, I want to make a COM-compatible .NET DLL (Visual Basic). For this I need an interface. The DLL has a class that must contain methods that can be used without making an instance...
0
6964
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
7126
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,...
0
7175
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7330
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...
1
4865
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4559
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3070
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1378
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
598
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.