
Simple problem across processes - need simplest answer
Quote:
> Hi Chris
> On Mon, 11 Nov 2002 15:05:28 -0500, "Chris Wise"
> >I need to be able to pass an integer value between applications. I've
looked
> >into this extensively and can't find an easy answer... I've got a number
of
> >restrictions that nullify possible solutions:
> The only thing you did not exclude was Shared Memory.
> Have a look at:
> CreateFileMapping
> MapViewOfFile
> OpenFileMapping
> UnmapViewOfFile
> If you exclude this too, then nothing else is left ;-)
Yeah there is...
Create an out of process COM server that only allows one instance. In it
have your *global* variable. Just add the methods you need and away you go.
Actually, that ought to be very simple indeed. A mere 'follow the wizard'
exercise in VC and maybe even simpler in VB.
Any more...?
Oh, what about shared memory segment in a DLL that the apps load using load
library. The DLL would expose the methods for setting and getting the
integer value.
Nope, can't think of any more ;)
--
russ.
http://www.gipsysoft.com/articles/winspector/ - FREE Spy++ replacement.
http://www.gipsysoft.com/qhtm/ - FREE HTML display in a small and light DLL
http://www.gipsysoft.com/ZoomPlus/ - Programmers Zoom Utility on Steroids