Hi All,
I wuld like to know if there is any possibility of sharing a common class
between different applications.
i.e. if the two applications are running, they can share the class, and
changes made to class from one application should be visible in the other
application.
Thanks in advance
Sajid Saeed 6 2386
On Wed, 4 Feb 2004 11:20:44 +0300, "Sajid Saeed"
<hi******@hotma il.com> wrote: Hi All,
I wuld like to know if there is any possibility of sharing a common class between different applications. i.e. if the two applications are running, they can share the class, and changes made to class from one application should be visible in the other application.
Thanks in advance
Sajid Saeed
Ceate a new class library project, create your shared classes there
and give them a good namespace name, like YourName.Shared or something
like that.
In you other projecs, add a reference to the assemblie of above class
library project, put a 'using YourName.Shared ;' on top and the classes
become available.
--
Ludwig
mailto:ludwig_( nospamplease)st uyck@pandora(no spamplease).be
Hi All,
lets say we have a variable in our shared class, for arguments sake let it
be x, and has a value of 2.
now application APP1, accesses this shared class, and changes the value in
the shared class variable x, so now x has a value of 5
the application App2, now also accesses the shared class variable and
changes it to a value of 25, so x is now 25.
now when APP1, access the value of the shared class again, it should see a
value of 25.
is this doable and how?
Thanks in advance.
Sajid Saeed
"L#" <ludwig_(nospam please)stuyck@p andora(nospampl ease).be> wrote in message
news:rp******** *************** *********@4ax.c om... On Wed, 4 Feb 2004 11:20:44 +0300, "Sajid Saeed" <hi******@hotma il.com> wrote:
Hi All,
I wuld like to know if there is any possibility of sharing a common class between different applications. i.e. if the two applications are running, they can share the class, and changes made to class from one application should be visible in the other application.
Thanks in advance
Sajid Saeed
Ceate a new class library project, create your shared classes there and give them a good namespace name, like YourName.Shared or something like that.
In you other projecs, add a reference to the assemblie of above class library project, put a 'using YourName.Shared ;' on top and the classes become available.
-- Ludwig mailto:ludwig_( nospamplease)st uyck@pandora(no spamplease).be
On Wed, 4 Feb 2004 11:46:46 +0300, "Sajid Saeed"
<hi******@hotma il.com> wrote: Hi All,
lets say we have a variable in our shared class, for arguments sake let it be x, and has a value of 2.
now application APP1, accesses this shared class, and changes the value in the shared class variable x, so now x has a value of 5
the application App2, now also accesses the shared class variable and changes it to a value of 25, so x is now 25.
now when APP1, access the value of the shared class again, it should see a value of 25.
is this doable and how?
One option is to use something like .NET remoting such that the object
lives in one applicaiton domain, and your applications talk to the
object as a remote object - even though it's on the same machine.
HTH
Ben
Hi Sajid,
No, it is not posible.
The only way to access objects from another application domain is remoting.
--
B\rgds
100
"Sajid Saeed" <hi******@hotma il.com> wrote in message
news:eu******** ******@TK2MSFTN GP11.phx.gbl... Hi All,
I wuld like to know if there is any possibility of sharing a common class between different applications. i.e. if the two applications are running, they can share the class, and changes made to class from one application should be visible in the other application.
Thanks in advance
Sajid Saeed
Yes, you will need to use remoting. This is not too difficult.
MSDN has examples. http://xpcoder.net
"Sajid Saeed" <hi******@hotma il.com> wrote in message news:<eu******* *******@TK2MSFT NGP11.phx.gbl>. .. Hi All,
I wuld like to know if there is any possibility of sharing a common class between different applications. i.e. if the two applications are running, they can share the class, and changes made to class from one application should be visible in the other application.
Thanks in advance
Sajid Saeed
Your talking about different applications which means different processes
and appdomains, so to share data you need:
1) remoting/web services, or sockets
2) MMF, Named Pipes or other. Memory Mapped File (MMF) is probably best for
sharing a struct.
--
William Stacey, MVP
"Benjamin Wootton" <be************ **@hotmail.com> wrote in message
news:6j******** *************** *********@4ax.c om... On Wed, 4 Feb 2004 11:46:46 +0300, "Sajid Saeed" <hi******@hotma il.com> wrote:
Hi All,
lets say we have a variable in our shared class, for arguments sake let
itbe x, and has a value of 2.
now application APP1, accesses this shared class, and changes the value
inthe shared class variable x, so now x has a value of 5
the application App2, now also accesses the shared class variable and changes it to a value of 25, so x is now 25.
now when APP1, access the value of the shared class again, it should see
avalue of 25.
is this doable and how?
One option is to use something like .NET remoting such that the object lives in one applicaiton domain, and your applications talk to the object as a remote object - even though it's on the same machine.
HTH Ben This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Tom Q |
last post by:
A user has multiple applications running on his/her PC and I want to create
a broker component or service that is shared among the multiple apps. Each
time an application changes a record it notifies the broker and the broker
in turn notifies the other applications so they can take appropriate
actions. Any one app may send a string data to the broker and the broker
makes this string data available to all the other apps. This has to...
|
by: varlagas |
last post by:
We disabled the antivirus software but the problem persists. Any clues?
Many thanks in advance!
Panagiotis Varlagas
=======================================================================
2005-07-28-10.39.02.015001 Instance:DB2 Node:000
PID:1568(db2syscs.exe) TID:2440 Appid:0A00153A.C90B.050728083720
|
by: JoeS |
last post by:
Is there anyway to share a single pch file between
projects in VC 7.0? I have 300+ projects each of which
creates its own pch. All projects include the exact same
header files in the precompiled header. Its takes about 7
seconds to create the precompiled header for each project.
That's 35 minutes spent creating precompiled headers for
all project! All of the projects use PDB files for debug
info.
I tried creating Precomp.pch in project...
|
by: BPearson |
last post by:
Hello
I would like to have several sites share a single web.config file. To accomplish this, I would point the root of these sites to the same folder. Is there any reason why I might not want to do this? (IIS 5 or 6
In case you're wondering why I would do this, we have many web sites on a single server, and there are groups of sites that need to share common configuration information. I'd like to ease some administration by having one...
|
by: qube3 |
last post by:
We have applications written by JSP/Servlet and ASP.NET. All our future
development would be based on ASP.NET.
We wants to develop a single user interface so that users would not be aware
that some of the modules they are using are implement by JSP or ASP.NET
(e.g. no need to login both JSP and ASP.NET applications)? Are there any
suggestions to share the session in formation among JSP and ASP.NET, or some
single-sign on solution.
| |
by: James Radke |
last post by:
Hello,
I have a web application that contains class 'X' (note that this is one
class of many contained in the application). Now, we need to create a pc
based windows application which will use the same class 'X'. So, I was
wondering, what is the best method for sharing the class between the two
different applications (web based and pc windows based) so that I do not
need to copy the code from one application to the other, and keep...
|
by: rcolby |
last post by:
Hi,
A little advice on code sharing across projects, namespaces and dll's for
references.
I've got an application that is split between three different projects (one
for a service, one for manual operation of the service and web client for
the interface to the user). There are a lot of functions that are shared
through these projects and I'm using the following format which is store in
ApplicationNamspace.vb and doesn't seem to work...
|
by: radiax |
last post by:
Iam trying to find a simple solution for sharing data between windows
applications( apart of using file system or remoting or MMF) . I tried using
class library by making data members "shared" but it seems that data cant
not be passed between applications. what am I doing wrong here? what are
"simple" possible solutions?
thanks
|
by: mc |
last post by:
I would like to be able to send from an ASP.NET page an email which when recieved takes the form of
a "Sharing Invitation for a RSS Feed" (http://office.microsoft.com/en-us/outlook/HA101595391033.aspx)
I've found a MSDN article about it (http://msdn2.microsoft.com/en-us/library/bb176432.aspx) but that
example is presented as a vb(a) script from within outlook.
Can this functionality be emulated from sending an email from C#?
TIA
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
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 we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |