Click here to Skip to main content
15,888,254 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to enable the Prev Page button in PrintPreview dialog? Pin
gshen22-Jul-09 9:11
gshen22-Jul-09 9:11 
Questioncreating a text menu from an ini file in C Pin
alleyes22-Jul-09 8:40
professionalalleyes22-Jul-09 8:40 
AnswerRe: creating a text menu from an ini file in C Pin
Adam Maras22-Jul-09 8:50
Adam Maras22-Jul-09 8:50 
GeneralRe: creating a text menu from an ini file in C Pin
alleyes22-Jul-09 9:05
professionalalleyes22-Jul-09 9:05 
QuestionRe: creating a text menu from an ini file in C Pin
Maximilien22-Jul-09 9:35
Maximilien22-Jul-09 9:35 
AnswerRe: creating a text menu from an ini file in C Pin
alleyes22-Jul-09 10:18
professionalalleyes22-Jul-09 10:18 
AnswerRe: creating a text menu from an ini file in C Pin
Jeremy Falcon22-Jul-09 12:37
professionalJeremy Falcon22-Jul-09 12:37 
Questionwhat is the equivalent command for adLogin.Recordset(0) which is in VB in VC++...Pls help Pin
kokilag22-Jul-09 8:19
kokilag22-Jul-09 8:19 
I want to put a Login form at the beginning of my project with using VC++ MFC along with validations.I have created a table using MS-ACCESS giving Username and Password as column headers.Now I want to connect the MS-ACCESS table contents with this VC++ MFC form.So if I enter the name and password in the edit boxes which are in the Login form,it should check that particular data whatever is typed in the edit boxes with the records in the MS-ACCESS say in login.mdb and pop a messagebox if it is incorrect,else the user must be allowed to enter the next form.S how to do that.The same thing I have done in Visual Basic as follows,but now I want the equivalent code in VC++ MFC,can anyone pls tell me...?

Private Sub cmdOk_Click()
Dim cnt As Integer
adLogin.Recordset.MoveFirst
cnt = 1
If txtLogin = "" Or txtPassword = "" Then
MsgBox "Invalid UserName or Password"
Exit Sub
End If
While Not adLogin.Recordset.EOF
If adLogin.Recordset(0) = txtLogin.Text And adLogin.Recordset(1) = txtPassword.Text Then
Unload Me
'mainForm.Show
frmOption.Show
Exit Sub
Else
adLogin.Recordset.MoveNext
cnt = cnt + 1
End If
Wend
If cnt >= adLogin.Recordset.RecordCount Then
txtLogin.Text = ""
txtPassword.Text = ""
MsgBox "Wrong User Name or Password"
txtLogin.SetFocus
End If
End Sub
Question[mfc] start/stop other process Pin
rahuljin22-Jul-09 6:24
rahuljin22-Jul-09 6:24 
AnswerRe: [mfc] start/stop other process Pin
Rajesh R Subramanian22-Jul-09 6:55
professionalRajesh R Subramanian22-Jul-09 6:55 
GeneralRe: [mfc] start/stop other process Pin
rahuljin22-Jul-09 7:23
rahuljin22-Jul-09 7:23 
GeneralRe: [mfc] start/stop other process Pin
Rajesh R Subramanian23-Jul-09 7:50
professionalRajesh R Subramanian23-Jul-09 7:50 
GeneralRe: [mfc] start/stop other process Pin
rahuljin23-Jul-09 9:22
rahuljin23-Jul-09 9:22 
GeneralRe: [mfc] start/stop other process Pin
rahuljin22-Jul-09 10:05
rahuljin22-Jul-09 10:05 
GeneralRe: [mfc] start/stop other process Pin
killabyte22-Jul-09 15:18
killabyte22-Jul-09 15:18 
QuestionHow to set CTabCtrl background colour? Pin
risa0922-Jul-09 4:57
risa0922-Jul-09 4:57 
AnswerRe: How to set CTabCtrl background colour? Pin
omjee26-Nov-09 22:20
omjee26-Nov-09 22:20 
QuestionUser control problem Data bind Pin
beesan22-Jul-09 1:36
beesan22-Jul-09 1:36 
AnswerRe: User control problem Data bind Pin
Cedric Moonen22-Jul-09 2:43
Cedric Moonen22-Jul-09 2:43 
Question[mfc] ip address control Pin
rahuljin22-Jul-09 1:21
rahuljin22-Jul-09 1:21 
AnswerRe: [mfc] ip address control Pin
Adam Roderick J22-Jul-09 2:17
Adam Roderick J22-Jul-09 2:17 
GeneralRe: [mfc] ip address control Pin
rahuljin22-Jul-09 8:01
rahuljin22-Jul-09 8:01 
GeneralRe: [mfc] ip address control Pin
bolivar12322-Jul-09 9:43
bolivar12322-Jul-09 9:43 
GeneralRe: [mfc] ip address control Pin
rahuljin22-Jul-09 10:03
rahuljin22-Jul-09 10:03 
GeneralRe: [mfc] ip address control Pin
bolivar12322-Jul-09 10:20
bolivar12322-Jul-09 10:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.