Ab initio calculations on some binary systems involving hydrogen bonds