Subj : Re: Platform: DOS (Overlay) To : borland.public.cpp.borlandcpp From : waking Date : Mon Jul 19 2004 02:09 am On Sat, 17 Jul 2004 14:57:58 -0500, "Jeff Baker" wrote: >The CD-ROM has a year or two of Doc JJ back issues Never seen or heard of it. Do you mean DDJ? What directory is it in? >but no real help concerning the IDE, complier/link options and nothing >about project/workspace options. If it's a legitimate 5.02 package, you should have numerous help files. These are the *.hlp files in the bc5\help directory on my 5.02 CD: 95guide.hlp bc5main.hlp bcdos.hlp bcerrmsg.hlp bcpp.hlp bctools.hlp bcvdtref.hlp bcw.hlp bwcc.hlp cg5.hlp classlib.hlp ctl3d.hlp hcw.hlp hw32.hlp kbase.hlp mapi.hlp mc.hlp mfc41.hlp midl.hlp misapi.hlp mmedia.hlp ocf.hlp ole.hlp ole2view.hlp oletools.hlp opengl.hlp openhelp.hlp owl50.hlp owlex.hlp pdh.hlp penapi.hlp progtech.hlp rc.hlp rc32.hlp rlman.hlp rpc.hlp script.hlp setupapi.hlp shed.hlp sock2.hlp stl.hlp tapi.hlp tdwini.hlp uiguide.hlp vbt300.hlp vtss.hlp win31wh.hlp win32.hlp win32s.hlp win32sdk.hlp winsight.hlp winspctr.hlp winsys.hlp workshop.hlp It may have a few more than yours, since it's the Development Suite edition. Still, you should have bcw.hlp and bctools.hlp, which give you options, IDE settings, etc. >It's a great product but if my package was complete ... It's not, by the sound of it. You may have purchased a CD which was part of a SAMS book deal, or a magazine special, etc. What does the face of the CD say? Does it have a BOR number, copyright date(s), etc.? Who knows, maybe someone just burned a CD from a hard disk installation. >TC++ may have be some what limited with it's capabilities but at lease >it came with a great big thick book. If the 5.02 windows help files weren't enough, you could purchase the printed manuals for an additional fee. I still see copies of the set occasionally at discount book shops. That was the nice thing about BC++ 4.xx - you could buy the printed manuals if you wanted to, but the CD also had the complete set in DynaText format. The DOS reference manual had/has a good write-up on creating overlaid programs. >> (1) The linker (tlink16) in 5.02 (and 5.01 I believe) is broken vis a vis >> overlays. >Well that's going to be a problem because 5.02 is the version that's >installed directly from the CD-ROM. Is there a patch available? There is a patch or two for 5.02 but they don't address the overlay issues. You mentioned TC++. Do you have a version, and if so which one is it? If it includes TLINK then you may be able to use it for linking overlaid apps. I know that for simple examples, I have successfully used tlink.exe from the TC++ 1.01 package which is (or was) freely available for download from Borland's "Museum" web site. >I have the Borland Power Pack for DOS (it was for version 4.x) do you think >installing this would fix the problem? Not directly. If it includes tlink.exe then you can use that linker. (I have it here as well, but don't have time or inclination to dig out the disks and check them.) Note that there are installation issues with using the Power Pack with BC++ 5.0x. However, they are documented (unofficially). Go here http://www.vmlinux.org/~jakov/community.borland.com/ and look for articles with titles such as: "Using the DOS Power Pack with Borland C++ 5.0" "Using Power Pack for DOS W/ BC5.0" While there, you may also find some TIs of interest re overlays. Look for titles such as: "How Overlays Work, difference between -Y and -Yo" "How to use Overlays in Turbo and Borland C++" "Resizing the overlay buffer at program startup" "VROOM Overlay swapping using XMS and EMS" "How overlays and the overlay manager work" "Closing The Overlay Manager's File Handle" "overlays: VROOMM and the network" "Abort does not do cleanup of overlays." "Overlays only supported in medium, large, and huge" While the PP was only officially supported for use with BC++ 4.xx, if you can use the PP with the 5.02 which you have, then you may not need to concern yourself with overlays. Just create a DPMI program instead. >> (2) The IDE doesn't put the proper overlay options in make files. >> These can be added to the makefile manually. > >Care to share the process or provide a link? Do you plan on using a make file for building this program? It is only needed if you plan on building from the command line using make.exe or maker.exe. I believe the .ide files are created OK. I don't have access to the machine with 5.02 installed at the moment, so can't verify the details. From memory, the things to check for after creating a makefile from the IDE are the following: Locate the linker section - it should begin around where the string $(TLINK) is found. Where the lib files are listed, such as: J:\BC45\LIB\emu.lib+ J:\BC45\LIB\mathl.lib+ J:\BC45\LIB\cl.lib add an entry at the start of the list for the overlay.lib (if missing): J:\BC45\LIB\overlay.lib+ J:\BC45\LIB\emu.lib+ J:\BC45\LIB\mathl.lib+ J:\BC45\LIB\cl.lib Look for the "compiler configuration" section(s), and add the option -Y or -Yo as needed (according to the option you would supply for each module in the project). That's about it, I believe. -- Wayne A. King (waking@idirect.com, Wayne_A_King@compuserve.com) .