Skip to content
Projekte

Über uns

Retro programming in Borland C++ 3.1

Design und Medien

So werden diese Zahlen gemessen

Gemessener Sternzuwachs

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
Verlauf wird gesammelt

Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.

README.md

Original

dos-bcdemos

Retro programming in Borland C++ 3.1

Screenshot

Prerequisites

To build and run the Borland C++ demos, you must first install the following tools:

Install DOSBox Staging

Ubuntu

$ sudo add-apt-repository ppa:feignint/dosbox-staging
$ sudo apt update
$ sudo apt install dosbox-staging 7zip

macOS

$ brew install dosbox-staging sevenzip

Configuration

When starting dosbox-staging the first time, the configuration file dosbox-staging.conf will be generated in

  • Ubuntu: ~/.config/dosbox/dosbox-staging.conf
  • macOS: ~/Library/Preferences/DOSBox/dosbox-staging.conf

Install Borland C++

  1. Download Borland CPP 3.1 and Application Frameworks (1992) (3.5-1.44mb).7z

    $ curl -o "Borland CPP 3.1 and Application Frameworks (1992) (3.5-1.44mb).7z" "https://dl.winworldpc.com/Borland%20CPP%203.1%20and%20Application%20Frameworks%20(1992)%20(3.5-1.44mb).7z"
    
  2. Extract the downloaded Borland C++ archive

    $ 7zz x "Borland CPP 3.1 and Application Frameworks (1992) (3.5-1.44mb).7z"
    
  3. Extract the Borland C++ disk images

    $ cd "Borland CPP 3.1 and Application Frameworks (1992) (3.5-1.44mb)"/
    $ for i in *.img; do echo $i; 7zz x -y -obcsetup $i; done
    
  4. Move the extracted files to the DOS C: drive

    $ mkdir -p ~/DOSBox
    $ mv bcsetup ~/DOSBox/
    
  5. Configure DOSBox Staging

    Edit dosbox-staging.conf (see Configuration) and add the following autoexec options

    [autoexec]
    mount c ~/DOSBox
    path %PATH%;C:\BORLANDC\BIN
    c:
    

    To run the demos at about the speed of a 486 DX2-66, set the following settings

    [dosbox]
    machine = svga_paradise
    vmem_delay = off
    
    [cpu]
    core = auto
    cputype = auto
    cpu_cycles = 50000
    cpu_throttle = off
    
  6. Start dosbox-staging and execute the Borland C++ installation program

    $ dosbox-staging
    C:\> cd bcsetup
    C:\BCSETUP> install.exe
    

    In the installation program, select the following options

    Enter the SOURCE drive to use: C
    Enter the SOURCE Path: \BCSETUP
    Windows Options... WINDOWS Capability: No
    Start Installation
    

Build demos

Link the dos-bcdemos git repository to the DOS C: drive

$ ln -s ~/git/dos-bcdemos ~/DOSBox/bcdemos

Build demos from DOS terminal

  1. Execute build script

    C:\BCDEMOS> buildall.bat
    

    The demos will be located in the C:\BCDEMOS\BUILD directory

  2. Run demo

    C:\BCDEMOS> build\demo01.exe
    

Build demos from Borland C++ IDE

  1. Start Borland C++ IDE

    C:\BCDEMOS> bc
    
  2. Configure Borland C++

    Press ALT+O for options

    Select Directories and type in the following directories

    Include Directories: C:\BORLANDC\INCLUDE;C:\BCDEMOS\SRC
    Library Directories: C:\BORLANDC\LIB
    Output Directory: C:\BCDEMOS\BUILD
    

    Select Debugger and the following options

    Program Heap Size: 512 K Bytes
    

    Select Environment, Preferences and the following options

    [ ] Auto-Save
    

    Select Environment, Editor and the following options

    [ ] Create backup files
    

    Select Save

  3. Open demo source file

    Press F3 to open file

  4. Build demo source file

    Press F9 to build file

  5. Run demo

    Press ALT+R and R to run demo

License

Licensed under MIT license. See LICENSE for more information.

Authors

Screenshots

Screenshot Screenshot Screenshot Screenshot Screenshot Screenshot Screenshot Screenshot Screenshot Screenshot

Ähnliche Projekte entdecken

Wird geladen…