Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uunet!pyrdc!netxcom!netxdev!ewiles From: ewiles@netxdev.DHL.COM (Edwin Wiles) Newsgroups: comp.lang.c++ Subject: Using C++ lib with regular C code? Keywords: Help Message-ID: <1644@netxcom.DHL.COM> Date: 10 Nov 89 16:16:24 GMT Sender: news@netxcom.DHL.COM Lines: 27 [ PLEASE! Send your mail to the following address. Mail to ] [ the 'news' machine (the machine this was posted from) is ] [ very unreliable! ] [ ...!hadron!netex!elw ] I have been tasked to write a library of functions for a set of existing software. I'd really like to use C++, but cannot (for various reasons) make massive changes to the existing software. So, my question is, how much trouble would it be to use a library written in C++ with code that is written in plain old C? The library must support multiple flavors of IPC (Inter Process Communications) in a way that is as transparent as possible to the program using it. In such a way that only minor changes are required of existing software to use it. I can replace the open, read, and write calls -- and add 'init' calls to the startup routines -- but I cannot completely rewrite the routines that use them. How about it? Am I just asking for a wet carp in the face? Or is this fairly easy to do? Thanks! "Who?... Me?... WHAT opinions?!?" | Edwin Wiles Schedule: (n.) An ever changing nightmare. | NetExpress Comm., Inc. ..!uunet!netxcom!ewiles (I'm certain!) | 1953 Gallows Rd. Suite 300 OR ewiles@iad-nxe.global-mis.DHL.COM (I think!) | Vienna, VA 22182