I am trying to send data(string) from an entry widget to the serial port.

If I assign the string when I declare the char array it works well. (char*
szMessage[] = "This is test data";) 

But when I use the entry seems there are problems converting the text of the
entry into char an the compiler gives me the next error 
"cannot convert `Glib::ustring' to `char' in assignment"..

To send the string to the port i am using this method declared in a class

int CSerial::SendData( const char *buffer, int size )

Any ideas. Thanks

Jorge Vidales

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.516 / Virus Database: 269.21.3/1308 - Release Date: 3/3/2008
10:01 AM

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