hi
i would like to know in MFC :
i have a CSTRING type variable which contains integer data
i want to convert it to a int type variable
and how do i do the opposite convert var from integer to cstring ?
CString str;
str = "10 20"; // put two number as string
int i = atoi((LPCSTR)str); //get the first number (i=10)
str.Delete(0,3); //cut 3 first characters
i = atoi((LPCSTR)str); //get the second number (i=20)
Really you must find start position of each number in string before atoi processing.
i have already succeeded myself
i use like this : double area = atof(m_length)
or vice versa m_EditQuantity.Format("%d", Quantity);
but does someone can help me in something else :
i made SPIN BUTTON and i changed the counting base to SetBase(16)
but when i start to press up/down i see 0x0001, 0x0001F like this.........
but i want only the 01,1F
do i need to change it to char or somethnig , how can i do it ?
10x.