On the registration screen hint user name to register
Time:09-23
I made a about MFC registration screen in the same input user name when you click on the confirmation after prompt the user name already exist? Now the idea is to define a variable frame the user editorial content extracted, and then to look for in the database and found the same prompt, without the same validation by But how can achieve Cstrings x; X=IDC_EDIT_Name; Cstrings sqlStr_findid; If (sqlStr_findid="SELECT * FROM member WHERE MemberName='" + x +"' ") { MessageBox (" the user name has been registered!" ); return; } This is my first code, but no matter whether the user name after the insert in repeated will give tip has been registered
CodePudding user response:
If (sqlStr_findid="SELECT * FROM member WHERE MemberName='" + x +"' ") is an assignment statement, is not associated with a database query