It's been a day I can't get rid of those cute question marks. I definitely need a help with them.
Working environment [VS 2010, Oracle 11g].
Task is to store and retrieve huge text from Oracle DB through win32 API into windows form.
In Database I've a BLOB field for the text. In my form (C#) I have a Text Box for the text.
Form sends the text to win32 API then win32 API has to store it in database.
After all, another Form (C#) retrieves the text from database.
Code goes like following.
//Win32 storing the text (C++) wstring theText=get_the_text(); //(gets the text from Form) string strText=convert_wstring_to_string(theText); //(type conversion)
store_in_database(new ByteArray((char*)strText.c_str(), strText.length(), true));
//---------------------------------------------------------------------------------
//Form retrieving the text (C#)
String theText=System.Text.Encoding.UTF8.GetString((byte[])get_from_database());
TextBox txtDisplay.Text=theText;
In code, every self-explanatory function does what they suppose to do. / get_the_text(), store_in_database() ...etc /
As a result I got everything I want except question mark is appearing at the end of my Text Box. Every time I update the text, 1 more appears at the end of the Text Box.
So from where question mark come up? How to get rid of the question mark?
Any comment, suggestion or hint is welcomed :)
I don't like them ----> ��������