Re: how to declare global Class library project?

From: CJ Taylor (cege)
Date: 10/23/04


Date: Fri, 22 Oct 2004 19:32:34 -0500

Easist way would be a web service. Otherwise a service itself using
remoting... (or services messages, but thats a whole other topic)

Now here is why.

In .NET libraries are loaded into their calling process. I haven't seen
anything that supports a shared memory segment like C++'s #pragma
declaration nor really see how. Each EXE is it's own process, has its own
memory reserved for it and cannot interact with other applications through a
shared library (at least one written in .NET).

Now, you could write a regular DLL (not activeX, because COM uses Single
Threaded Apartments *I think I'm right here.*) which would be right back
where you started. It would have to be written to support shared memory
addressing (a subject I'm not too familar with, just how its declared) and
it would obviously be unmanaged. So you have that to deal with as well.

Which leads me back to my original point of either a hosting application
supporting remoting (i.e a winforms app that has a singleton instance of the
class and simply acts as a server for the two other executable) or a web
service/service that runs in the background and also serves requests

Advantage of the web service. 95% of the work is done for you, easy as pie
to integrate into any .NET application. Disadvantage, you have to watch for
the aspnet_wp recycling and make sure you keep your data integrity up to
snuff. Service, you don't have to worry about the recycling, but you do
have a little more work ahead of you.

Let me know if you have any questions.

HTH,
CJ

"Ron" <anonymous@discussions.microsoft.com> wrote in message
news:009301c4b79a$4b9c5640$a601280a@phx.gbl...
> Hello,
>
> I need to create/instantiate a global class library
> project so that 2 EXE's can write to the same class
> library form in the same instance of the class libary. I
> am thinking something along the lines of declaring the
> class library project in a global assembly and then
> referencing this global declaration from each of the 2
> EXE's. Is the global assembly where I could declare my
> global class libary project? How to do that?
>
> Thanks



Relevant Pages

  • Re: Variable declaration: Global vs. Function
    ... Unix libraries and builds have always been a ... and how it differs from construction of function-local ... do any of your global objects depend upon ... Its only the global declaration that is the ...
    (comp.lang.cpp)
  • Re: The Ulimate Editor
    ... the parameters to CALL have always been in the reverse order to a standard C call. ... W32F does not use the count of parameters to manipulate the stack before the call; ... a function as a normal Forth word, without too much declaration fluff; preferably just the name of the library it lives in, as I can do right now in Win32Forth. ... of external libraries ...
    (comp.lang.forth)
  • Re: compiling taucs problem (Re: solving Ax=b with sparse A)
    ... The function declaration in line 6 of spmat.cc ... exception are fortran libraries that you call from C, ... int main{ ... I can't see what I am doing wrong while compiling the example ...
    (sci.math.num-analysis)
  • RE: synchronize 2 different document libraries
    ... Hi bil and thank you for your reply ... libraries that they must be the same with others documents libraries in our ... > the web service ever was unavailable, ...
    (microsoft.public.sharepoint.portalserver.development)
  • Re: please help
    ... This is the library declaration: ... libraries built on Cygwin but not MinGW. ...
    (comp.lang.fortran)