If I have a RichTextBox that is named "richTextBox1".
In this box I will write for ex this word below:
OneWord
How is it possible to assign: OneWord into a stringvariable ?
If I have a RichTextBox that is named "richTextBox1".
In this box I will write for ex this word below:
OneWord
How is it possible to assign: OneWord into a stringvariable ?
Find and RTFM.
I might be wrong.
Quoted more than 1000 times (I hope).Thank you, anon. You sure know how to recognize different types of trees from quite a long way away.
I am trying to do this but the compiler don´t like it. I wonder If I should write something else here than Text ?
Code:std::string FirstValue; FirstValue = string::find(richTextBox2->Text);
Last edited by Coding; 02-02-2008 at 05:50 PM.
wxwidgets?
Originally Posted by brewbuck:
Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.
What is wxwidgets, is this something that could be used for this purpose ?
was asking if that was the library you were using. Nevermind then. I could only help if it was.
And yes. wxWidgets is a library that provides a framework to develop nearly cross-compatible GUIs.
Originally Posted by brewbuck:
Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.
No this might not be what I am using.
I know it is possible to search a textbox using:
string::find but from here I really not sure how to assign all of the contents in a textbox into ex:
std::string FirstValue;
I tried this but something might be wrong:
Code:std::string FirstValue; FirstValue = string::find(richTextBox2->Text);
I am not sure if I understand... what do you meen by type. It is a "RichTextBox" and not a "TextBox" if it was this you ment.
What I am really after to do is this. I dont really know if it is possible or what approch that could be used for this purpose.
Assume that we have this code:
This is working fine, we assign Number3 = 10; here.Code:int Number1 = 0; int Number2 = 10; int Number3 = 0; if (Number1 < Number2) { Number3 = 10; }
Now what I want to do is to interact with this code through a RichTextBox and what I want to write in this box is the statement:
So instead of write this in the code, I will do this line in the RichTextBox instead.Code:if (Number1 < Number2)
Is this possible in any way ?
Thanks
Last edited by Coding; 02-02-2008 at 06:47 PM.
I am using VC++ 2008 Express Edition. As it is a statement I dont know if perheps a bool must be used here in any way...
Last edited by Coding; 02-02-2008 at 06:53 PM.