Barnard, Andrew, active 1798-1803, Colonial Secretary at Cape of Good Hope