home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1998 May / Pcwk5b98.iso / Borland / Cplus45 / BC45 / README.TXT < prev    next >
Text File  |  1995-08-29  |  37KB  |  862 lines

  1.                         *****************************
  2.                          WELCOME TO BORLAND C++ 4.52
  3.                         *****************************
  4.  
  5. This README file contains important information about
  6. BORLAND C++.  For the latest information about Borland C++
  7. and its accompanying programs, read this entire file.
  8.  
  9. *****************
  10. TABLE OF CONTENTS
  11. *****************
  12. 1.  How to Get Assistance
  13.           -- Sources of information
  14. 2.  Installation
  15.           -- Installing Borland C++ on your hard disk
  16. 3.  New Features
  17. 4.  Important Information
  18.           -- ObjectComponents Framework (OCF), OLE 2.0, 
  19.              and ObjectWindows 2.5
  20.                    -- New files in WINDOWS\SYSTEM directory
  21.                    -- New tools for registering OLE servers and
  22.                       automation controllers
  23.                    -- Registering a debugger to run an OLE server
  24.                    -- Debugging OLE applications under Windows NT
  25.                    -- WinSight
  26.                    -- OLE error codes
  27.                    -- OLE2 applications
  28.                    -- OLE implementation under Windows NT
  29.                    -- OLE2 compiler options
  30.           -- VBX Support (including 32-bit)
  31.           -- OpenHelp
  32.                    -- OpenHelp with TASM and PowerPack
  33.           -- Out of Memory and MAKESWAP
  34.           -- Threads
  35.           -- DDVT functions and RTTI
  36.           -- Inline assembly and interrupts
  37.           -- Creating 16-bit import libraries from .DEF files
  38.           -- New Compiler Back-end and Pentium scheduler support
  39.           -- New Compiler Switches and Linker Optimizations
  40.           -- NOEHxx Libraries
  41.           -- IDE/Integrated Debugging
  42.           -- InProc servers and the IDE
  43.           -- Turbo Debugger for Windows
  44.           -- Using Tools with NTFS
  45.           -- CTLDATA statements in Win32
  46.           -- Running from a Windows 3.1 DOS Prompt
  47.           -- Converting Borland C++ 3.1 to Borland C++ 4.52 code
  48.           -- Floating-Point Formats
  49.           -- WinRun
  50.           -- AppExpert and OWL
  51.           -- Online Registration
  52.  
  53. *********************************************
  54. 1. HOW TO GET ASSISTANCE
  55. *********************************************
  56. If you have any problems, please read this file, the HELPME.WRI and other
  57. files in your DOC subdirectory, and check the on-line help. If you still
  58. have a question and need assistance, help is available from the following
  59. sources:
  60.  
  61.   1. Borland offers a wide variety of Technical Support plans
  62.      providing a range of assistance from installation and general
  63.      usage of Borland C++ to language syntax, programming, and
  64.      debugging help. For information about these support programs,
  65.      call 1-800-523-7070.
  66.  
  67.   2. For immediate assistance with everything from configuring Borland C++
  68.      to C++ programming or debugging, call our C++ Programmer's Advisor 
  69.      Lines ($2/minute, first minute free):
  70.      * Windows / Win32:  1-900-555-1002  or 1-800-782-5558 (MC/Visa)
  71.      * DOS :   1-900-555-1004  or 1-800-368-3366 (MC/Visa)
  72.  
  73.      For assistance outside of North America, contact your local Borland 
  74.      representative.
  75.  
  76.   3. To receive Technical Support for Borland Database Tools, please call:
  77.      1-800-839-9777
  78.  
  79.   4. For on-line access to the Borland CompuServe forums, with their 
  80.      libraries of technical information and answers to common questions,
  81.      type
  82.  
  83.      GO BCPPDOS   - for questions pertaining to DOS
  84.      GO BDEVTOOLS - for questions pertaining to Borland Database Tools
  85.      GO BCPPWIN   - for questions pertaining to Windows
  86.  
  87.      If you are not a member of CompuServe, see the enclosed
  88.      special offer, and write for full details on how to receive
  89.      a free IntroPak containing a $15 credit toward your first
  90.      month's on-line charges.
  91.  
  92.   5. Borland's TECHFAX service. Call (800) 822-4269 for a FAX
  93.      catalog of technical document entries. For assistance outside of 
  94.      North America, contact your local Borland representative.
  95.  
  96.   6. Borland DLBBS. Dial (408) 431-5096 (up to 9600 baud, 8-N-1)
  97.      for a host of free technical documents and example programs.
  98.  
  99.   7. Technical information on Borland C++ is available on the Internet
  100.      via anonymous ftp at our ftp site ftp.borland.com and via the
  101.      World Wide Web at the URL http://www.borland.com.
  102.  
  103.   8. Subscribe to Borland's free electronic newsletter and get a regular
  104.      update on the hottest programming tips and tricks.  Send your full
  105.      name and address via electronic mail to tech-info@borland.com.
  106.  
  107. =============== 
  108. 2. INSTALLATION 
  109. =============== 
  110. IMPORTANT!
  111. Do not install Borland C++ 4.52 over previously installed
  112. Borland C++ directories from versions 4.5 or earlier. The
  113. files in this distribution will not work with previously
  114. shipped tools and libraries.  This is particularly true for
  115. configuration files from previous shipping releases, like
  116. TDCONFIG.TDW and BCCONFIG.BCW.
  117.  
  118. If you used Turbo Assembler 4.0 or the Borland Power Pack
  119. for DOS with a previous installation of Borland C++, you
  120. must reinstall those products after installing Borland C++
  121. 4.52.
  122.  
  123. If you used CodeGuard for Borland C++ 4.5 with a previous
  124. installation of Borland C++, you must reinstall CodeGuard
  125. after installing Borland C++ 4.52.
  126.  
  127. Also, be especially careful when using object files and
  128. libraries from earlier Borland C++ versions with binaries
  129. created with this release. There are several potential
  130. problems when linking with old objects or libraries.
  131. Exceptions won't work correctly (destructors won't get
  132. called) when a pre-BC4 stack frame is unwound due to an
  133. exception.
  134.  
  135. Do not use long file names when installing under Windows
  136. NT.
  137.  
  138. -----------------------------------------------
  139. Installing Borland C++ 4.52 on your hard disk
  140. -----------------------------------------------
  141.  
  142. For information about installing Borland C++ 4.52 from
  143. CD-ROM, see the CD booklet.
  144.  
  145. To install Borland C++ 4.52 from floppy disks,
  146. 1.  Put disk 1 in your floppy drive.
  147. 2.  In Program Manager, choose File|Run.
  148. 3.  Type A:\INSTALL. (If your disk drive is not drive A, type the
  149.     appropriate letter instead.)
  150. 4.  Choose OK.
  151. 5.  Follow the instructions on the screen.
  152.  
  153. Diagnostic and debug version of OWL are not installed to the
  154. hard disk, but they can be copied from the CD or built from
  155. OWL source using the makefile provided.
  156.  
  157. Users of ObjectWindows 1.0, Turbo Vision 1.0, or the Paradox
  158. Engine should read the COMPAT.TXT file for information on
  159. using these products with Borland C++ 4.52.
  160.  
  161. To get Turbo Profiler, you must install the debuggers.
  162.  
  163. **** Note to Windows NT, OS/2, and Windows 95 users ****
  164.  
  165. If you intend to use Borland C++ under any of these
  166. platforms you must follow some additional installation
  167. steps, which are listed in the INSTALL.TXT file.  If you
  168. fail to read and follow these configuration guidelines, you
  169. may encounter several significant problems when using
  170. Borland C++.
  171.  
  172. The following files which appear in the BC45\BIN directory
  173. are intended for Windows 3.1 and may not work correctly in
  174. conjuction with 32-bit applications running under Windows
  175. 95:
  176.  
  177. DIB.DRV
  178. YESMOUSE.DRV
  179. VGAP.DRV
  180. MSMOUSE.DRV
  181.  
  182. However, certain 16-bit applications require these drivers to run.
  183.  
  184. For more information about installing and configuring
  185. Borland C++, see the file INSTALL.TXT which can be found in
  186. the following locations:
  187.  
  188. * Borland C++ floppy disk 1 (INSTALL.TXT)
  189. * Borland C++ CD-ROM (\BC45\INSTALL.TXT)
  190.  
  191.  
  192. ***************
  193. 3. NEW FEATURES
  194. ***************
  195.  
  196. Borland C++ 4.52 is an update to 4.51.  The main difference
  197. is the upgrading of header files and import libraries to
  198. support the Windows 95 programming.  There is a new version
  199. of the OWL libraries (2.52) to accommodate some altered
  200. structure definitions in the new Win32 headers.  In addition,
  201. 4.52 makes small improvements to our VBX support.  For a
  202. more specific list of updated files, see INSTALL.TXT.
  203.  
  204. The rest of this section describes what was new in 4.5 for
  205. users who are upgrading from earlier versions.
  206.  
  207. Borland C++ 4.5 includes the following new features:
  208.  
  209.   * A complete encapsulation of OLE2 via new ObjectWindows classes
  210.     and the ObjectComponents Framework, a new set of C++ classes. This
  211.     allows you to develop applications that support the following
  212.     OLE capabilities in both 16 and 32-bits:
  213.           - Linking and embedding containers
  214.           - Linking and embedding servers
  215.           - Automation servers (automatable servers)
  216.           - Automation controllers
  217.           - OLE clipboard operations
  218.           - OLE drag and drop operations
  219.           - In-place editing
  220.           - OLE user interface, including menu merging, pop-up menu
  221.             for activated object, verbs on container's Edit menu
  222.           - Compound file storage
  223.           - Registration
  224.           - Localized strings for international support
  225.           - Type libraries
  226.   * IDE enhancements to TargetExpert, AppExpert, and ClassExpert to
  227.     support the new OLE2 capabilities.
  228.   * A new, faster, default compiler back-end.
  229.   * The 16-bit Profilers (TPROF and TPROFW) have returned to the product.
  230.   * VBX support for 32-bit programs.
  231.   * OpenHelp, a utility that enhances the functionality of Windows Help
  232.     by allowing you to quickly search for topics across Help files, as
  233.     well as the ability to add your own Help files (or remove them) from
  234.     the search.
  235.   * Visio OLE Testbed, a subset of Shapeware's drag-and-drop drawing
  236.     program. You can use Visio OLE Testbed to test OLE compound documents,
  237.     objects, and automation with applications you create using Borland C++.
  238.   * WinRun allows you to launch Window application from the MS-DOS prompt
  239.     in Windows 3.1.
  240.   * For CD-ROM users, the complete Borland C++ manual set is now available
  241.     online in the DynaText document viewing browser. Using DynaText, you 
  242.     can search through the entire collection of books to find selected
  243.     topics. You can view the contents of a single book page by page or 
  244.     even print the complete documentation set. See the booklet in your
  245.     Borland C++ 4.52 CD-ROM case for information about how to launch and
  246.     use the DynaText Browser.  Complete information on how to use DynaText
  247.     is available in the online Help for the Browser.
  248.   * Improved EasyWin provides scrolling and printing support for character
  249.     based Windows applications.
  250.   * Software based correction for the FDIV flaw in older Pentium chips.
  251.     For more information, see BCW.HLP.
  252.  
  253. ************************
  254. 4. IMPORTANT INFORMATION
  255. ************************
  256. This section contains important information not found in the manuals, 
  257. online Help, or online text files.  Please read through this material
  258. in its entirety.
  259.  
  260. ----------------------------------------------------------------
  261. ObjectComponents Framework (OCF), OLE 2.0, and ObjectWindows 2.5
  262. ----------------------------------------------------------------
  263.  
  264. New file In WINDOWS\SYSTEM directory
  265. -------------------------------------
  266.  
  267. Borland C++ 4.52 installs new files called BOCOLE.DLL and
  268. BOCOF.DLL in your WINDOWS\SYSTEM directory. These libraries
  269. must be present in order for 16 and 32-bit ObjectComponents
  270. programs to execute respectively.  BOCOFW.DLL is a unicode
  271. implementation of BOCOF.DLL which can be rebuilt from
  272. source or copied from the CD-ROM.  BOCOFW.DLL is for use on
  273. Windows NT only.
  274.  
  275. New tools for registering OLE servers and automation controllers
  276. ------------------------------------------------------------------
  277.  
  278. The program tool AUTOGEN simplifies the task of writing
  279. proxy classes for an automation controller. AUTOGEN reads
  280. type libraries (*.OLB; *.TLB) and emits C++ source files
  281. containing the proxy objects. The REGISTER and GUIDGEN
  282. utilities provide a means of registering and unregistering
  283. servers and generating unique identifiers.
  284.  
  285. Registering a debugger to run an OLE server
  286. -------------------------------------------
  287.  
  288. To make OLE invoke your server through the debugger, add the
  289. following entry to the appropriate registration table.
  290.  
  291.      REGDATA(debugger,   "TDW")
  292.  
  293. You can specify a complete path to the debugger as well as
  294. command-line options for the debugger.  Do not place the
  295. name of the server program on the debugger command line.
  296. That will happen automatically.
  297.  
  298. If you want to choose at runtime whether to invoke the
  299. server with or without the debugger, then each application
  300. or document must essentially be registered twice, using
  301. different CLSIDs, progids, and descriptions. The debug and
  302. non-debug entries will appear simultaneously in object
  303. browsers.  The debug invocation will have the /Debug flag
  304. on the command line; this will in turn register the
  305. application class factory for the debug registration
  306. instead of the normal registration. To test for the
  307. presence of /Debug on the command line, call this function:
  308.  
  309.       TOcModule::IsOptionSet(amDebug);
  310.  
  311. If you register debugprogid, you should also register both
  312. debugdesc and debugger. The debug description string
  313. distinguishes the debugging and non-debugging registry
  314. entries for the user. If you register debugprogid, the
  315. debugger entry will be used only for the debug
  316. registration.
  317.  
  318. These are typical debug entries:
  319.      REGDATA(debugprogid,"MyDocument.Debug")
  320.      REGDATA(debugdesc,  "MyDocument Debug Object")
  321.      REGDATA(debugger,   "TDW")
  322.  
  323. There is also a debugclsid entry, but you don't have to
  324. register it yourself because ObjectComponents generates it
  325. for you automatically by offsetting the application's
  326. clsid.
  327.  
  328. The application registration is used for automation
  329. invocations, and document registrations are used for
  330. linking and embedding invocations.  Any or all can be set
  331. up for dual registration.
  332.  
  333. For DLL servers, the registration debug entries are
  334. completely ignored.  To debug DLL servers, use the
  335. REGISTER  tool with the -Debug command-line option. This
  336. will launch the DLL and break inside, allowing breakpoints
  337. to be set. Do not close the message box until the debugging
  338. session is complete.
  339.  
  340. Debugging OLE applications under Windows NT
  341. -------------------------------------------
  342.  
  343. When debugging OLE applications under Windows NT 3.5, you
  344. may experience a lock up if a program is forced to
  345. terminate.  This will happen when any OLE application is
  346. running under the IDE and you explicitly request Debug |
  347. Program Terminate, or implicitly request program termination
  348. by closing a project.  This problem will not occur under
  349. Windows 3.1 or Windows 95, and will not happen with non-OLE
  350. applications.  Borland recommends that all developers
  351. running under NT accept any updates to the NT OLE DLLs if
  352. and when they are made available by Microsoft.
  353.  
  354. WinSight
  355. --------
  356.  
  357. When WinSight spies on an ObjectWindows OLE container, it
  358. sometimes causes corruption of the container's menus.  This
  359. behavior is expected.  If it occurs, quit the application
  360. and start again.
  361.  
  362. OLE error codes
  363. ---------------
  364.  
  365. The file DOC\OLE_ERRS.TXT contains a list of the error codes
  366. OLE defines.  The list is sorted in numerical order.  Refer
  367. to it for help in interpreting OLE-related error returns.
  368.  
  369. OLE2 applications
  370. -----------------
  371.  
  372. Many commercial products are now offering their first
  373. generation of OLE2 enabled applications. Some of these
  374. applications are more complete OLE implementations than
  375. others. Borland has observed several major commercial
  376. applications that exhibit errant behavior when asked to
  377. perform certain OLE operations. This is especially true when
  378. asked to embed DLL servers, which many OLE applications
  379. appear to be unprepared to handle. If you experience
  380. problems when using OLE applications you create with
  381. Borland C++ in conjunction with third party products, do
  382. not jump to the conclusion that the problem is yours.  Until
  383. OLE applications in the market place mature, it is not yet a
  384. safe assumption that just because a product comes from a
  385. leading company that it is robust. Changes introduced
  386. between OLE 2.0 and OLE 2.02 are responsible for exposing
  387. some of these problems. When reporting bugs in OLE
  388. applications to third parties, be sure to specify that they
  389. should be developing and testing under the latest version
  390. of OLE.
  391.  
  392. OLE implementation under Windows NT
  393. -----------------------------------
  394.  
  395. The 16 bit OLE implementation originally shipped in Windows
  396. NT 3.5 may exhibit problems with DLL servers and may behave
  397. differently than the version of OLE that MS recommends for
  398. Windows 3.1. Borland recommends that all NT developers
  399. update to later versions of the NT OLE DLLs if and when
  400. they are made available by Microsoft.
  401.  
  402. OLE2 compiler options
  403. ---------------------
  404. 1) 32 bit OLE2 projects must increase the identifier length to 55.
  405.    You can do this with the command line compiler -i switch or in the IDE
  406.    with the Options|Project|Compiler|Source edit field.
  407. 2) When using 32-bit OLE2, INC_OLE2 must be defined. You can do this on the
  408.    command line with -DINC_OLE2 or in the IDE in the
  409.    Options|Project|Compiler|Defines edit field.
  410. 3) When linking 16 or 32 bit OLE2 modules, the OLE2 import library
  411.    (ole2w16.lib or ole2w32.lib) must come before the RTL import library 
  412.    (import.lib or import32.lib respectively).
  413.  
  414.  
  415. -----------------------------
  416. VBX Support (including 32-bit)
  417. ------------------------------
  418. The BIVBX102.DLL has been renamed to BIVBX11.DLL.
  419.  
  420. BIVBX11.DLL has been tested with a large number of VBX controls written
  421. to the Microsoft Visual Basic 1.0 CDK specification. If you have a problem
  422. with a specific control, make sure that it does not require VB 2.0 or
  423. VB 3.0 CDK functionality. VBX 2.0 and 3.0 controls will usually display a
  424. message saying that they require VB 2.0 or 3.0 support. In some cases,
  425. though, the control might appear to work but exhibit instability. Please
  426. contact the control vendor and explain the problem. They might have an
  427. updated control or might be able to contact Borland to find a solution.
  428.  
  429. The following functions in BIVBX.H are limited to 16-bit only and should be
  430. replaced as follows:
  431.  
  432.  Old (16-bit only)         New (16-bit and 32-bit)
  433.  -----------------         -----------------------
  434.  VBXGetBasicStringPtr      VBXGetBasicStringBuf
  435.  VBXGetCStringPtr          VBXGetCStringBuf
  436.  VBXGetEventName           VBXGetEventNameBuf
  437.  VBXGetPropName            VBXGetPropNameBuf
  438.  VBXLockCString            VBXLockCStringBuf
  439.  VBXMethod                 N/A
  440.  
  441. To build any 32-bit application that uses VBX controls, link with
  442. BIVBX32.LIB instead of BIVBX.LIB. VBX support for 32-bit applications
  443. requires that the following files are present in the Windows
  444. \SYSTEM directory at run-time:
  445.  
  446. All:           BIVBX11.DLL
  447. Win32s:        BIVBX11S.DLL and BIVBX11.32S
  448. Windows95:     BIVBX11C.DLL and BIVBX11.32C
  449. NT:            BIVBX11N.EXE and BIVBX11.32N (installed in \SYSTEM32)
  450.  
  451. For more information, see the BIVBX.WRI file.
  452.  
  453. TargetExpert now manages libraries for VBX controls.   If you have an IDE
  454. project which uses VBX controls, make the following change  to your project
  455. to take advantage of TargetExpert support:
  456. - In the project window, delete the bivbx.lib node.
  457. - In the project window, right click on your EXE node.
  458. - From the resulting SpeedMenu, select TargetExpert.
  459. - In TargetExpert, enable the VBX checkbox and press OK.
  460.  
  461. ----------------------------------
  462. NT console applications and Win32s
  463. ----------------------------------
  464. There is no Win32s console, so attempting to run a Win32 console
  465. application without NT loaded will result in an error.
  466.  
  467. ----------
  468. OpenHelp
  469. ----------
  470. See the online Help provided with OpenHelp (OPENHELP.HLP) for details on how
  471. to use and configure this new search engine.
  472.  
  473. OpenHelp with TASM and PowerPack
  474. ------------------------------------
  475. If you install TASM with BC 4.52, you need to run the OpenHelp configuration
  476. to configure your Help files. If you install PowerPack, the BCDOS.HLP file
  477. will be overwritten. However, the .HLX index file will not include index
  478. entries for the new BCDOS.HLP file. To fix this, remove BCDOS.HLP from
  479. OpenHelp and re-add it so that a new .HLX file is generated. You can delete
  480. the BHBC4.HDX file from the \BIN directory because it is no longer needed.
  481.  
  482. --------------------------
  483. Out of Memory and MAKESWAP
  484. --------------------------
  485. If you get "Out of Memory" errors from DOS when running the command-line
  486. tools, or if you have only 8 MB of RAM and have out-of-memory problems
  487. building and using 32-bit applications, then create a swap file with the
  488. MAKESWAP utility. Note that this applies to DOS only, not to DOS boxes
  489. opened under Windows. MAKESWAP takes the size of the file to create in
  490. KBytes, for example
  491.  
  492.   MAKESWAP 12000
  493.  
  494. will create a 12MB swap file in the current directory called EDPMI.SWP 
  495. for use by Borland command-line tools.  To enable the swap file, use the
  496. DPMI32 environment variable by issuing the following command at the DOS
  497. prompt:
  498.  
  499.   set DPMI32=SWAPFILE <location of swap file>\EDPMI.SWP
  500.  
  501. You must clear this environment variable by issuing the command
  502.  
  503.   set DPMI32=
  504.  
  505. before running Paradox or other 16-bit DPMI-hosted executables, such as
  506. Borland C++ 3.1 command-line tools.
  507.  
  508. -------
  509. Threads
  510. -------
  511. When creating secondary threads, the _beginthread or _beginthreadNT
  512. and _endthread() RTL functions must be used to ensure the proper RTL
  513. initialization and cleanup. Using NT's CreateThread and ExitThread functions
  514. will result in undefined behavior if an implicit or explicit call is made to
  515. the RTL. Both exception handling and RTTI can lead to implicit RTL calls.
  516.  
  517. -----------------------
  518. DDVT functions and RTTI
  519. -----------------------
  520. When compiling code that contains DDVT functions, do not use run-time type
  521. information or you will receive an error message. In order to compile
  522. without using run-time type information, compile all code that uses DDVTs
  523. (for instance OWL 1.0x libraries and applications)with the -RT- switch
  524. (Options|Project|C++ Options|Exception handling\RTTI in the IDE).
  525.  
  526. ------------------------------
  527. Inline assembly and interrupts
  528. ------------------------------
  529. If your inline assembly code includes an interrupt call, the compiler does
  530. not preserve any registers altered by the call. You must write code to save
  531. and restore registers when using interrupt calls within inline assembly
  532. code.
  533.  
  534. ------------------------------------------------
  535. Creating 16-bit import libraries from .DEF files
  536. ------------------------------------------------
  537. Use the /o implib switch when creating 16-bit import libraries from .DEF
  538. files to prevent implib from generating extensions for import entry module
  539. names.
  540.  
  541. --------------------------------------------------
  542. New Compiler Back-end and Pentium scheduler support
  543. --------------------------------------------------
  544. Borland C++ 4.52 includes two different compiler back-ends. By
  545. default, the IDE uses BCWS32.EXE and the command line uses BCC32.EXE. 
  546. (Both 32-bit compilers use the same front-end.) However, if your application 
  547. requires special Pentium scheduler support, then you must use BCWS32A.EXE 
  548. from the IDE or BCC32A.EXE from the command line. 
  549.  
  550. To configure the IDE so that it uses BCWS32A.EXE:
  551. 1) Use a text editor to open the file \WINDOWS\BCW.INI.
  552. 2) Add the following lines to the file and then save the file:
  553.    
  554.    [SERVER]
  555.    Server32=BCWS32A.EXE
  556.  
  557. The BCWS32A and BCC32A compilers reorder certain assembly instructions
  558. so that they take advantage of the Pentium scheduler. However,
  559. BCWS32A.EXE and BCC32A.EXE have the disadvantage of longer compile
  560. times. Because the executable files produced by BCWS32.EXE and
  561. BCC32.EXE run on all 80386 systems and greater, it's recommended
  562. that you always use these default compilers, except when you need the
  563. special support of the Pentium scheduler.
  564.  
  565. If you use the BCC32A.EXE command-line compiler, you can specify Pentium
  566. scheduler support using the -5 command-line option. To specify Pentium
  567. scheduler support for the BCWS32A.EXE IDE compiler, open the Project
  568. Options dialog box and check 32-bit Compiler|Processor|Pentium setting.
  569. Note that the default compilers do not support these option settings.
  570.  
  571. BCC32.EXE and BCW32S.EXE evaluate function parameters in the order they are
  572. pushed on the stack as opposed to BCC32A.EXE and BCW32A.EXE, which evaluate
  573. parameters from left to right. This difference in the order of evaluation is
  574. important if, for example, functions called in parameter evaluations cause
  575. global side effects. According to the ANSI C/C++ language specifications,
  576. the evaluation of function parameters is implementation dependent.
  577.  
  578. ---------------------------------------------
  579. New Compiler Switches and Linker Optimizations
  580. ----------------------------------------------
  581. See your documentation for a description of the new compiler switches
  582. for exception handling and a list of the new optimization capabilities
  583. as well as the new command-line linker options.
  584.  
  585. ----------------
  586. NOEHxx Libraries
  587. ----------------
  588. Purpose:
  589.  
  590. The NOEHxx libraries eliminates the overhead of exception-handling code in
  591. the run-time library for users who don't need it and who do rely on any
  592. libraries that require it.
  593.  
  594. How to use:
  595.  
  596. A NOEHxx library must be linked in before the standard runtime library.
  597. For command-line tools this can be accomplished by specifying the appropriate
  598. NOEHxx library on the BCC command-line, or making it the first library given
  599. to TLINK.
  600.  
  601. For the IDE, add the appropriate library to the project using AddNode.
  602. To ensure the NOEHxx library is processed before the standard libraries,
  603. turn on "Show Runtime Nodes" in the Options|Environment|ProjectView dialog.
  604. From the project window you can move the library up and down using the
  605. ALT-<arrow> keys. Be sure the NOEHxx library appears before other standard
  606. libraries. Note: use NOEHWL.LIB when building DPMI16 programs.
  607.  
  608. What they do:
  609.  
  610. The NOEHxx libraries resolve calls to exception-related compiler helper
  611. functions to dummy functions that return appropriate return values. They
  612. also restore the pre-exception behavior of operator new to return NULL on
  613. out of memory conditions. Non-exception enabled versions of setjmp() and
  614. longjmp() are also provided.
  615.  
  616. Limitations:
  617.  
  618. Note: some features introduced in BC4.0 require exception handling.
  619. These include the string class, BIDS container classes, the standard
  620. OWL libraries, and RTTI.
  621.  
  622. ------------------------
  623. IDE/Integrated Debugging
  624. ------------------------
  625. Using the Microsoft DBWIN utility interferes with the Event log's ability to
  626. display those same messages. To see those messages in the Event log, either
  627. quit DBWIN or select Options|No Output in DBWIN.
  628.  
  629. DDE applications must be debugged in hard mode.
  630.  
  631. Hard-mode debugging does not work reliably under Windows NT version 3.1,
  632. and might crash the WOW session. The IDE disallows users from selecting
  633. hard mode on all stops, but setting a breakpoint on certain Windows
  634. messages might cause the debugger to go into hard mode.
  635.  
  636. --------------------------
  637. InProc servers and the IDE
  638. ---------------------------
  639. You must delete bcwdef.* files from BC++ 4.0 or 4.02 in order to use the
  640. OleRegisterServer and OleUnregisterServer tools from the IDE SpeedMenu.
  641.  
  642. --------------------------
  643. Turbo Debugger for Windows
  644. --------------------------
  645. You can use TD32 to debug under Win32s. However, to do so, you must ensure
  646. you use SVGA.DLL or equivalent support in the VideoDLL entry in the
  647. [TurboDebugger] section of TDW.INI.
  648.  
  649. TD32 can support dual monitor debugging under Win32s. Ensure that a
  650. monochrome adapter is installed in your machine and set the Mono=yes flag
  651. in the [VideoOptions] section of TDW.INI:
  652.  
  653.        [VideoOptions]
  654.        MONO=yes
  655.  
  656. ---------------------
  657. Using Tools with NTFS
  658. ---------------------
  659. When you are using Borland C++ 4.52 tools under NTFS, be aware of assumptions
  660. about file extensions. If Borland C++ 4.52 tools see an extension,
  661. they assume no default. Therefore, with "bcc32 test.1.cpp", BCC32
  662. spawns TLINK32 with "-ap c0x32.obj test.1, test.1, import32 cw32".
  663. As TLINK32 sees an extension on test.1, it makes NO assumptions about
  664. a .obj or .exe extension.  It attempts to look for test.1 (instead of
  665. test.1.obj) and to create test. (instead of test.1.exe).
  666.  
  667. Embedded blanks in filenames are not currently supported. For instance, under
  668. the Windows NT NTFS file system it is legal to have a file named
  669. "This is an interesting file name.cpp". The response file processing in our
  670. 32-bit tools cannot handle this type of file.
  671.  
  672. 16-bit tools running on NT cannot use NTFS filenames.
  673.  
  674. ---------------------------
  675. CTLDATA statements in Win32 
  676. ---------------------------
  677. Different implementations of the Win32 API require different alignment rules 
  678. applied to DLGITEMTEMPLATE data structures. For most dialog templates,
  679. this difference has no effect because most programmers do not use this
  680. statement. If, however, a dialog template uses the CTLDATA statement to
  681. pass initialization data to a custom control, the data may not be passed
  682. properly, or the dialog may fail to display properly or even at all, or the
  683. program may receive a general protection fault. Borland's resource compilers
  684. produce DLGITEMTEMPLATE data structures according to the alignment rules
  685. applied by Win32s and Windows 95. Therefore, dialog templates using 
  686. CTLDATA statements compiled using Resource Workshop, BRCC32, or BRCC may
  687. not work in Windows NT. Note that this warning applies only if a template
  688. uses the CTLDATA statement. All other templates work correctly in all
  689. known implementations of the Win32 API.
  690.  
  691. -------------------------------------
  692. Running from a Windows 3.1 DOS Prompt
  693. -------------------------------------
  694. If you run BCC or TLINK from a Windows DOS box and you get out of memory
  695. errors, increase the XMS memory (in the 'Maximum' setting) allocated for
  696. the DOS box by editing the appropriate .PIF file (usually DOSPRMPT.PIF).
  697. BCC.EXE needs about 4MB to compile medium-sized .CPP files, and might
  698. need more memory for large .CPP files with debugging information.
  699.  
  700. NOTE: You must set the 'Maximum:' setting to the amount needed, not
  701.       the 'Required:' setting.  Using the 'Required:' setting only
  702.       sets aside memory for XMS, not for DPMI services.  Thus, any
  703.       amount set in the 'Required:' setting box is unavailable.
  704.  
  705. -----------------------------------------------------------
  706. Converting Borland C++ 3.1 Windows Code to Borland C++ 4.52
  707. ------------------------------------------------------------
  708.  
  709. To get your BC++ 3.1 code to compile and run under Borland
  710. C++ 4.52, modify your code to reflect three character types
  711. where compiler errors occur when using the Borland C++ 4.52
  712. RTL includes.  Alternatively, you can use the -K2 compiler
  713. option with the RTL includes from BC++ 3.1. This option
  714. provides for only two character types. (Note that -K2, a
  715. backward compatibility switch, is supported only in the
  716. 16-bit compiler.) Also, use operator new[]() and delete[]()
  717. syntax for class arrays.
  718.  
  719. Some 32-bit to 8-bit conversions allowed by ANSI are flagged
  720. by BCC32 with "Conversion may lose significant digits in
  721. function XXXXX".  You can safely ignore this message if you
  722. are doing certain types of 32-bit to 8-bit casts (for
  723. instance, int to char) and you're not worried about losing
  724. significant digits in those cases.
  725.  
  726. ----------------------
  727. Floating-Point Formats
  728. ----------------------
  729.  
  730. Floating-point formats are a collection of formatting
  731. information used to manipulate floating point numbers in
  732. certain runtime library functions such as scanf() and
  733. atof().
  734.  
  735. This section discusses why you might get the error FLOATING
  736. POINT FORMATS NOT LINKED : ABNORMAL PROGRAM TERMINATION and
  737. tells you how to resolve it.
  738.  
  739. There are no current plans to fix this because it is not a
  740. bug. The intent is to avoid linking the floating-point
  741. formats (about 1K of overhead) when they are not required.
  742. The tradeoff is that the programmer must explicitly request
  743. that the floating-point formats be linked in for some
  744. programs that manipulate floats in a limited and specific
  745. fashion.
  746.  
  747. Because you can get this error in a number of different
  748. ways, check the following list of potential causes to find
  749. out how to resolve the error.  The causes are listed in
  750. order of most common to least common.
  751.  
  752.   1.  CAUSE:  Floating point set to <None>.  You have your
  753.       floating point option set to None when it should be set to
  754.       either Fast or Normal.
  755.  
  756.       FIX:  Set Floating Point to Fast or Normal.
  757.  
  758.   2.  CAUSE:  Either the compiler is over-optimizing, or the
  759.       floating-point formats really do need to be linked in because
  760.       your program manipulates floats in a limited and specific
  761.       fashion. Under certain obscure conditions, the compiler will
  762.       ignore floating point usage in scanf() (e.g., trying to
  763.       read into a float variable that is part of an array contained
  764.       in a structure.)
  765.  
  766.       FIX: Add the following to one source module:
  767.  
  768.            extern _floatconvert;
  769.            #pragma extref _floatconvert
  770.  
  771.   3.  CAUSE:  Forgetting to put the address operator & on the scanf
  772.       variable expression. For example,
  773.        float foo;
  774.        scanf("%f", foo);
  775.  
  776.       FIX: Change the code so that the & operator is used where it
  777.       is needed.  For example, the above code should be
  778.        float foo;
  779.        scanf("%f", &foo);
  780.  
  781. --------
  782. WinRun
  783. --------
  784.  
  785. WinRun is a utility that lets you run a Windows program in a
  786. DOS box. This utility is especially useful if you need to
  787. run Windows programs from a DOS box in order to build
  788. certain ObjectWindows OLE-enabled applications.  It
  789. requires Windows 3.1 Enhanced mode. 
  790.  
  791. On the command line, you can optionally add /a or /w or /aw 
  792. switches.  (Autodetect and Wait mode)
  793.  
  794. The install program automatically adds WinRun to your
  795. startup group.
  796.  
  797. Switches for WinRun:
  798.  
  799. If you have selected the AutoDetect mode,(either by WinRun's
  800. command line switch /a, or setting it in WinRun's system
  801. menu), you can simply type BCW in a DOS box, and BCW will
  802. launch. You can still use WR to launch an application, (for
  803. example to override the current Asynch mode setting with
  804. wr.exe's /w or /a switches) However, this switch slightly
  805. affects the loadtime of all DOS programs though it is
  806. minimal in cases where you are using a disk caching.
  807.  
  808. The Asynchronous mode (selectable through WinRun's menu or
  809. /w command line switch) causes the DOS box NOT to wait for
  810. the Windows application to finish. Instead, it will always
  811. return with an exit code of 0.  In synchronous (wait) mode,
  812. the DOS box will be suspended until the Windows application
  813. terminates, and the exit code will be propagated to the DOS
  814. box.
  815.  
  816. -----------------
  817. AppExpert and OWL
  818. -----------------
  819.  
  820. The value of the IDS_LISTNUM define in OWL has changed since
  821. BC++ 4.02.  If you have created an application in BC++ 4.0
  822. or 4.02 using AppExpert, you will receive redefinition
  823. warnings when rebuilding in BC++ 4.52.  To correct this
  824. problem, update the .RH file for your project to match the
  825. new value for this define.  Specifically, the following
  826. line
  827.  
  828. #define IDS_LISTNUM 32582
  829.  
  830. should be changed to
  831.  
  832. #define IDS_LISTNUM 32584
  833.  
  834. -------------------
  835. Online Registration
  836. -------------------
  837.  
  838. Borland C++ now features online registration capability, to
  839. make it easier than ever to register your copy of Borland
  840. C++.  Registration gains you access to Borland customer
  841. support and assures that you will be among the first to be
  842. notified of new product information and special upgrade
  843. pricing.
  844.  
  845. Under Windows 3.1x, the registration utility adds the
  846. program remind.exe to the load statement in your WIN.INI
  847. file.  If you do not want to be reminded to register your
  848. copy of Borland C++ remove remind.exe from your load
  849. statement.
  850.  
  851. Removing the reminder under Windows NT requires editing the
  852. system registry.
  853.  
  854. Begin by launching the Registry Editor, REGEDT32.EXE,
  855. located in your SYSTEM32 directory.  Select the
  856. HKEY_CURRENT_USER window and go into the folder
  857.  
  858.     hkey_current_user/Software/Microsoft/Windows NT/CurrentVersion/Windows
  859.  
  860. There you'll see a "load:" line with the path to REMIND.EXE.
  861. Double click on that line and delete it.
  862.