From: z007400b AT bcfreenet DOT seflin DOT org (Ralph Silverman) Newsgroups: comp.lang.c,comp.os.msdos.djgpp,alt.comp.shareware,comp.os.msdos.programmer,rec.msdos.programmer Subject: Re: HELP: Overlayed Programs/Functions Followup-To: comp.lang.c,comp.os.msdos.djgpp,alt.comp.shareware,comp.os.msdos.programmer,rec.msdos.programmer Date: 12 Jun 1997 15:12:23 GMT Organization: SEFLIN Free-Net - Broward Lines: 70 Message-ID: <5np3kn$m7r@nntp.seflin.org> References: <338dfa3e DOT 183904 AT usenet DOT nau DOT edu> NNTP-Posting-Host: bc.seflin.org To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Michael D. Ryan (dbrotherhood AT geocities DOT com) wrote: : : How would I use functions from program1 in a spawned program : (program2)? IE: I have functions for drawing screens, dialogueboxes, : etc. I want to use them in my spawned program program2 without having : to include them in a compiled stand-alone version. The functions : library is huge 500K and is not worth including in some programs. So : I would like to be able to use the functions by running program2 from : program1 (which is a shell of sorts). Is there any way to do this? : How does Windows do it? How can programming windows programs not : require rewriting/compiling all the classes for dialogue boxes, 3d : objects, etc. Will I have to write my own OS to do this... ? : Thanks.. : -- : Michael D. Ryan [Brotherhood Software] dbrotherhood AT geocities DOT com : Web Page: http://www.geocities.com/SiliconValley/Pines/5301/ : Shareware Trakker: http://www.alberts.com/AuthorPages/00014388/ST1.HTM : Items For Sale: http://www.geocities.com/SiliconValley/Pines/5301/sale.html : ** Advertising items for sale and software links available (free) ** : -- ( historic ... in times past a process might be limited to e.g. 32k core ! sophisticated software systems would limit functionality ... by modularization into different processes and intercommunicate through reading and writing files ! sophisticated operating systems such as early unix developed specialized methods of interprocess communications ... a powerful modern dos compiler ... utilizing this 'overlaying' approach is hi-tech 'pacific' ppd 'shareware' ... ) best to limit function library utilization to one process and intercommunicate ... if using unix see pipe(2) . use of 'scratch file' with modern systems may not be too costly ... also; can create process history of session ... a valuable side-effect ! -- Ralph Silverman z007400b AT bcfreenet DOT seflin DOT lib DOT fl DOT us