home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / cplus / 12580 < prev    next >
Encoding:
Internet Message Format  |  1992-08-19  |  1.6 KB

  1. Path: sparky!uunet!pipex!demon!cix.compulink.co.uk!vadim
  2. Newsgroups: comp.lang.c++
  3. From: vadim@cix.compulink.co.uk (Vadim Lebedev)
  4. Subject: Re: Virtual Functions and Shar
  5. Reply-To: vadim@cix.compulink.co.uk
  6. Date: Wed, 19 Aug 1992 16:44:38 +0000
  7. Message-ID: <memo.584472@cix.compulink.co.uk>
  8. Sender: usenet@gate.demon.co.uk
  9. Lines: 36
  10.  
  11. In-Reply-To: <1992Aug17.182423.14341@msuinfo.cl.msu.edu> baldwin@cps.msu.edu (Reid A Baldwin)
  12.  
  13. TITLE: Virtual Functions and Shared Memory
  14.  
  15. In artcile  <1992Aug17.182423.14341@msuinfo.cl.msu.edu>
  16.  baldwin@cps.msu.edu (Reid A Baldwin)
  17.   writes:
  18.  
  19. > I am developing an application in which multiple processes communicate
  20. > via shared memory (UNIX). Unfortunately, virtual functions don't work for
  21. > objects in shared memory. The process that creates an object gets the
  22. > correct results, but other processes execute the function for the
  23. > base class instead of the derived class (using the pointer type instead
  24. > of the object type). I am not familiar with the implementation of virtual
  25. > functions. Is it possible to use virtual functions on objects that are
  26. > created by other processes and accessed via shared memory?
  27. > Thanks for your help,
  28. > Reid Baldwin
  29. > P.S. I will post a summary of responses if they are interesting.
  30.  
  31. Well, you can put ALL the methods for shared objects
  32. in sharable library. This works for Windows, it should work fro UNIX too.
  33.  
  34. -----------------------------------------------------------------------
  35. Vadim Lebedev                      |   Kortex International
  36. vadim@cix.compulink.co.uk          |   139-147 av. Paul-Vaillant Couturier
  37.                                    |   93126 La Courneuve - CEDEX, France
  38.  
  39.  
  40.  
  41.  
  42.