wchoe@bmers31.UUCP (Winston Choe) (02/21/90)
I have a library of classes which are linked by possibly different applications. Some of the classes contain virtual functions. The intent is for the applications to share instantiated objects using shared memory. When an object of a class with virtual functions is instantiated by application-1, the virtual functions point to the functions in application-1. However, when the object is accessed by application-2 through shared memory, the virtual functions of the object CANNOT be called because they point to functions in application-1. Is there a way to solve this problem? One way is to put the library of classes in a shared library. This way, there is only 1 copy of the virtual functions and it's accessible by all the applications. Is there another way? (Not every machine supports shared libraries) I am using OASYS/Designer C++, V1.2E.