Subj : Re: Save a global value to memory To : borland.public.cpp.borlandcpp From : Jeff Kish Date : Thu Jan 20 2005 10:05 am On Mon, 22 Nov 2004 15:37:27 +0800, "akuma" wrote: >I want to record the input value from one program and put these value to the >dll and let the other >program get this value. However, this is not sucess. It seems that the >varialbe is localized to one process and >private to the other process. Also, after all the process terimated, the dll >was automatically unloaded even if FreeLibray >function was not called. It is easy to save these value to an ini file or >registy, but due to security reason, I want some method >to store the value to memory. I hope someone can help me to solve the >problem. The following is the non-working code: Use memory mapped files. That should work fine. HTH, Jeff Kish .