Re:ustring to char*



Hi,

you may use the "msgEntry.get_text().c_str()" directly as a paramter for your function as given below. But I also recommend allocating space, as mentioned in the previous reply, Since I am not sure about the scope of the ustring returned by "msgEntry.get_text()"

rfcomm_write(mc3t_bt_dev, msgEntry.get_text().c_str());






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]