442 Subj : Re: shared data in DLL To : borland.public.cpp.borlandcpp From : Jeff Kish Date : Mon May 24 2004 09:22 am On Sun, 23 May 2004 01:45:59 -0700, Ken Fong wrote: >Gary, > I'm actually thinking about shared data segment in DLL. >I found how to do it in : >http://bdn.borland.com/article/0,1410,20132,00.html > It's an example for BCB 4.0 and NT/4 but I've tried it on >BC 5.02 and Win98 and it worked as well. > But I'll look into using memory mapped files as well. > Thanks. >Ken > >Gary Setter wrote: > >> Hi Ken, >> What you are talking about is Interprocess communication. It comes up in >> the news groups fairly often so you should be able to search all the >> Borland newsgroups and find something. My first guess would be memory >> mapped files. Check out CreateFileMapping and related functions. There is >> a section on Interprocess communication in the Win32 help file. >> Gary >> I think memory mapped files are the only "official" way of doing this, but a shared data segment might work for you. HTH Jeff Kish . 0