Playing around with Visual C++ 2010, I have a textbox from where I've extracted a char array, called "j", with the contents "1200", i.e., j="1", j="2", ,j="0", j="0". In fact I don't know if it is j='1' or j="1" ( difference in quotation ). The problem is that I want to convert the char array "1200" to the int 1200, i.e., the number 1200 in one mem position. Not byte1="1", byte2=2, and so on. Just the plain number 1200. Let me show a bit of the code:
When cycling through the array ( after subtracting the character '0' ):
textBox1->Text +="" + (char)j[i];
it presents, on textBox1, the caracters 1200.
If converting it to int with atoi it doesn't compile if "h=atoi(*j);", and using h=atoi(j); it converts only the first character. What I need is h=1200 for some math after this convertion.
First of all, I thank to the comunity for any effort helping. Secondly, for reference, I'm an experienced assembler programmer for many years and I'm forced to learn C++ ( sorry but I simply HATE IT ) for a bet with a friend from the upstairs department, so I'll give it a try.