to enter numeric value into an edit box
-
:confused:I'm working on a project which is Single Document-MFC. I'm learning database programing vith visual c++ 6.0. I want to enter a numaric value into an EditBox. Then this value should be stored in *.mdb table as long integer. I chose catagory and value type as value/long from class wizard. But I could not write any code for it. When I enter a string,I could not have any problem. I wrote m_aciklamalar.GetWindowText (strAcikla); set.m_aciklama = strAcikla; then store Cstring into *.mdb. please,help me ! emroz
-
:confused:I'm working on a project which is Single Document-MFC. I'm learning database programing vith visual c++ 6.0. I want to enter a numaric value into an EditBox. Then this value should be stored in *.mdb table as long integer. I chose catagory and value type as value/long from class wizard. But I could not write any code for it. When I enter a string,I could not have any problem. I wrote m_aciklamalar.GetWindowText (strAcikla); set.m_aciklama = strAcikla; then store Cstring into *.mdb. please,help me ! emroz
Go to the properties of the Edit control, select the styles tab and check the Number check box. This should work. The only problem: you can only enter unsigned integer. If you need floats or signed numbers, you have to override the control. If you need that, I already done this, so, if you want I can send you the source files.
-
Go to the properties of the Edit control, select the styles tab and check the Number check box. This should work. The only problem: you can only enter unsigned integer. If you need floats or signed numbers, you have to override the control. If you need that, I already done this, so, if you want I can send you the source files.
if you send me,I'll be happy emroz
-
if you send me,I'll be happy emroz
Ok, no problem. Just give me your email adress :) !
-
Ok, no problem. Just give me your email adress :) !
emroz2003@hotmail.com emroz