At 05/01/2003 04:37 PM, Neil Devlin wrote:
> I have an application thats has its on DLL that uses system wide hooks. I
>share some memory between the two by using OpenFileMapping.. The application
>creates the mapped file, and the DLL opened the map file. Things work fine,
>I create the mapped file in the application once, then close it at the end.
>But within the DLL I have to open it and close it everytime I use it. I have
>one Global class within the DLL that deals with the memory reading, opening
>etc. Is this normal for a DLL memory mapped? I have tried opening the memory
>map whenthe system wide hooks gets started (within the DLL), and close it
>when the system wide hook gets closed (within the DLL). I dont get any
>errors opening it, but the application doesnt work properly.
I'd share memory between apps using "Shared Memory."
Use a semaphore to control access.
Phil Daley < AutoDesk >
http://personal.monad.net/~p_daley
