... and left off the c_str() on the messages. Fixed now.