Home All Groups Group Topic Archive Search About
Author
18 Dec 2006 10:17 PM
Dan
Dear all

I would like to achive IPC through two procesess by using the shared memory
aproach. I did some research but could not find an apropriate example that
would describe that. There are few that are trying to talk about the
efficiency but nothing that shows how to:

Process A would write to shared memory

Process B would detect that something is written and pick it up.

and vice versa from B -> A



Any help would be apreciated.

esentially the goal is: i have two applications. what i would like to do is
from application A to put something in shared memory ( like something that
was done in that application mouse mooved and coordinates) and then i have a
dll that picks that event up. Then application B through the shared dll could
pick up the information from share memory.

If there is any help in VC++ i would be really grateful.


Sincerely

Author
18 Dec 2006 10:19 PM
Lloyd Dupont
Why not use remoting with shared memory channels?

Show quoteHide quote
"Dan" <D**@discussions.microsoft.com> wrote in message
news:BBED6019-E454-4025-B0A2-2E004AE911A5@microsoft.com...
> Dear all
>
> I would like to achive IPC through two procesess by using the shared
> memory
> aproach. I did some research but could not find an apropriate example that
> would describe that. There are few that are trying to talk about the
> efficiency but nothing that shows how to:
>
> Process A would write to shared memory
>
> Process B would detect that something is written and pick it up.
>
> and vice versa from B -> A
>
>
>
> Any help would be apreciated.
>
> esentially the goal is: i have two applications. what i would like to do
> is
> from application A to put something in shared memory ( like something that
> was done in that application mouse mooved and coordinates) and then i have
> a
> dll that picks that event up. Then application B through the shared dll
> could
> pick up the information from share memory.
>
> If there is any help in VC++ i would be really grateful.
>
>
> Sincerely
>
Are all your drivers up to date? click for free checkup

Author
18 Dec 2006 10:35 PM
Dan
i was told that the application B can only hadle on ANSI C even though its
running on windows. So i thought that might a peorblem if i use anything
else.... Then again this is my first project in VC++. So i am learning as i
go.

......

Show quoteHide quote
"Lloyd Dupont" wrote:

> Why not use remoting with shared memory channels?
>
> "Dan" <D**@discussions.microsoft.com> wrote in message
> news:BBED6019-E454-4025-B0A2-2E004AE911A5@microsoft.com...
> > Dear all
> >
> > I would like to achive IPC through two procesess by using the shared
> > memory
> > aproach. I did some research but could not find an apropriate example that
> > would describe that. There are few that are trying to talk about the
> > efficiency but nothing that shows how to:
> >
> > Process A would write to shared memory
> >
> > Process B would detect that something is written and pick it up.
> >
> > and vice versa from B -> A
> >
> >
> >
> > Any help would be apreciated.
> >
> > esentially the goal is: i have two applications. what i would like to do
> > is
> > from application A to put something in shared memory ( like something that
> > was done in that application mouse mooved and coordinates) and then i have
> > a
> > dll that picks that event up. Then application B through the shared dll
> > could
> > pick up the information from share memory.
> >
> > If there is any help in VC++ i would be really grateful.
> >
> >
> > Sincerely
> >
>
>
>
Author
19 Dec 2006 10:12 PM
Lloyd Dupont
ANSI C? mhh... Shared memory functions are platform specific I believe...

In such case I will suggest pipe, TCP/IP socket and perhaps wrap all of that
with XML-RPC (http://www.xmlrpc.com/)

Show quoteHide quote
"Dan" <D**@discussions.microsoft.com> wrote in message
news:4748AA62-9D40-4669-A560-35607A7C6222@microsoft.com...
>i was told that the application B can only hadle on ANSI C even though its
> running on windows. So i thought that might a peorblem if i use anything
> else.... Then again this is my first project in VC++. So i am learning as
> i
> go.
>
> .....
>
> "Lloyd Dupont" wrote:
>
>> Why not use remoting with shared memory channels?
>>
>> "Dan" <D**@discussions.microsoft.com> wrote in message
>> news:BBED6019-E454-4025-B0A2-2E004AE911A5@microsoft.com...
>> > Dear all
>> >
>> > I would like to achive IPC through two procesess by using the shared
>> > memory
>> > aproach. I did some research but could not find an apropriate example
>> > that
>> > would describe that. There are few that are trying to talk about the
>> > efficiency but nothing that shows how to:
>> >
>> > Process A would write to shared memory
>> >
>> > Process B would detect that something is written and pick it up.
>> >
>> > and vice versa from B -> A
>> >
>> >
>> >
>> > Any help would be apreciated.
>> >
>> > esentially the goal is: i have two applications. what i would like to
>> > do
>> > is
>> > from application A to put something in shared memory ( like something
>> > that
>> > was done in that application mouse mooved and coordinates) and then i
>> > have
>> > a
>> > dll that picks that event up. Then application B through the shared dll
>> > could
>> > pick up the information from share memory.
>> >
>> > If there is any help in VC++ i would be really grateful.
>> >
>> >
>> > Sincerely
>> >
>>
>>
>>

Bookmark and Share