Hello , i have automated calculator code made that takes values from syntax std::string
How could it be converted from textbox system string to std::string ?
Soft is visual c++ 2010.
For example
std::string A;
std::string A = textBox1->Text;// problem is here
What type is textBox1 ? What is the problem you have, i.e. what is the error number and description? Does the textBox1 have a function named Text or is it a variable, if the former then you need to add parenthesis; i.e. Text() We basically need more info.
Looks to me like you're using C++/CLI which is NOT C++. It is a completely different language created by Microsoft to supersede Managed Extensions for C++. (.NET)
Before you go to far I would like to discourage you from proceeding on this path.
Mixing C++ and C++/CLI is not for the faint hearted. I have never seen a beginner produce anything but a mess of unstable code. C++/CLI was also not intended to be a fully fledged language for use with Winforms.
Winforms has been dropped from the Visual C++ CLR templates list in Visual Studio 2012 and on. Microsoft s advise would seem to be if you want to do Windows Desktop UI code (with the .Net framework), use C# (or VB.NET).
Having said that; converting System::String^ to std::string...
Thanks alot for decent example , finnaly got first app to work.
You are right , i generated hundreds of errors before code started to compile.
http://oi59.tinypic.com/2s8lngl.jpg
It starts to calculate if text changes
i was writing 100-200 line code to calculate row of numbers it but is it possible to calculate a string of numbers like "10+1-2*4" in single command?
visual basics made 1mb file for my short code calculator, What type of software i should use to try learn c++ , best if it has simple gui designing included that is compatable with std::string?