Tables of evolutionary sequences for massive stars with metallicities Z=0.002 and Z=0.01 in the mass range 9 to 40 M_{sun}_ and mass ratios 0.9 and 0.6 are presented. The orbital periods are chosen such that mass transfer according to case B occurs, i.e. mass exchange after core hydrogen exhaustion, during semi-detached and contact phases. The evolutionary code used by de Loore & De Greve (1992A&AS...94..453D) for galactic massive close binaries was updated, i.e. new thermodynamic quantities and new opacities were installed. The evolution of both components is followed simultaneously. Stellar wind mass loss rates during the OB phase are scaled according to the radiatively driven wind theory. Wolf-Rayet mass loss rates are assumed to be independent of metallicity. The models presented here may be used to interpret and evaluate the observations of Wolf-Rayet stars and massive binary X-ray sources in the Small and Large Magellanic Clouds.