Thread: bcc conversion

  1. #1
    Registered User
    Join Date
    Jun 2011

    bcc conversion

    <<< Split from borland C++ 4.52 >>>
    [QUOTE=jimblumberg;1028766]Actually Borland C++ Version 4.52 is a 32 bit program and can produce 32 bit Windows programs. This compiler is an ANSI C compiler with support for most, but not all of the C89 ISO standard. ]

    Do you have substantial experience with Borland C++ Version 4.52? I am trying to migrate from 16 bit to 32 bit. Under 32 bit linking using tlink32 (Borland C++ 4.52) I get this error: " Unresolved external '__ hardretn' referenced from module tdrvtst.c (see link below to view this file) whereas under 16 bit linking using tlink, I do not get this error. Obviously, 32 bit does not support '__ hardretn.'


    In win32 command line, am I using (see steps below) the right parameters for compiling and linking (example om.c; mb... files are library files from a third party; all others came with Borland C++ 4.5)? I use MB86, which converts Cbasic .bas to C code for compiling and linking with BC45.

    step 1 MB86 OM -WS(023)
    step 2: bcc32 -c -r- -w- -WC OM.c
    step 3: tlink32 -Tpe -ap c0x32 om,om.exe,,mbsup56b mbutl56b mb32i56b import32.lib cw32i
    Last edited by Salem; 06-12-2011 at 02:14 PM. Reason: split

  2. #2
    Registered User
    Join Date
    May 2010
    Since _harderr is a DOS hardware error handler prototyped in dos.h I would say that this is only available for DOS programs. And since DOS was 16 bit I doubt that it will work for a 32 bit program. Most of the functions provided by the dos.h and bios.h header files were only available for 16 bit programs.


Popular pages Recent additions subscribe to a feed

Similar Threads

  1. UCS-2 and UTF-8 conversion
    By George2 in forum C Programming
    Replies: 3
    Last Post: 08-01-2007, 06:10 AM
  2. Conversion
    By iamwill in forum Projects and Job Recruitment
    Replies: 0
    Last Post: 12-03-2006, 12:05 AM
  3. bmp to pdf conversion
    By leojose in forum Tech Board
    Replies: 8
    Last Post: 05-29-2005, 09:56 AM
  4. US vs UK Conversion
    By vasanth in forum A Brief History of
    Replies: 3
    Last Post: 07-11-2004, 12:32 PM
  5. C++ conversion
    By charlie in forum C++ Programming
    Replies: 6
    Last Post: 09-05-2001, 12:14 PM