Hello,
I'm migrating code from VS6 to VS2012. I have to do validation of GUI text entered to see whetehr its an integer within a range. I used DDV_MinMaxInt in VS6 to do this. But the same does not work in VS2012. Its not validating whether its an integer or not, its validating only the range (here, i used 10 to 20). If I'm giving the input as 11.1 (which is a not an integer but within range) also its accepting. Its not throwing an error message. Pls let me know how to resolve this issue.
Code:
class CTestMap1Dlg : public CDialogEx
{
// Construction
public:
CTestDlg(CWnd* pParent = NULL); // standard constructor
int my_int;
..
}
void CTestDlg::DoDataExchange(CDataExchange* pDX)
{
CDialogEx::DoDataExchange(pDX);
DDX_Text(pDX, IDC_EDIT1, my_int);
DDV_MinMaxInt(pDX, my_int, 10, 20);
}
Thanks and Regards