OK. solved - changed all &string[0] by .c_str() - they were quite a few actually