Click here to Skip to main content
15,899,634 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: i want to create MFC based project in visual studio c++ 2005 and want to run and see my window(such as add buttons, sample text boxes, and other control objects) that i have write code Pin
RomanMzh22-Jul-09 17:21
RomanMzh22-Jul-09 17:21 
AnswerRe: i want to create MFC based project in visual studio c++ 2005 and want to run and see my window(such as add buttons, sample text boxes, and other control objects) that i have write code Pin
chandu00422-Jul-09 19:30
chandu00422-Jul-09 19:30 
AnswerRe: i want to create MFC based project in visual studio c++ 2005 and want to run and see my window(such as add buttons, sample text boxes, and other control objects) that i have write code Pin
Michael Schubert22-Jul-09 21:05
Michael Schubert22-Jul-09 21:05 
GeneralRe: i want to create MFC based project in visual studio c++ 2005 and want to run and see my window(such as add buttons, sample text boxes, and other control objects) that i have write code Pin
#realJSOP22-Jul-09 23:26
professional#realJSOP22-Jul-09 23:26 
GeneralRe: i want to create MFC based project in visual studio c++ 2005 and want to run and see my window(such as add buttons, sample text boxes, and other control objects) that i have write code Pin
_Maxxx_23-Jul-09 0:17
professional_Maxxx_23-Jul-09 0:17 
AnswerRe: i want to create MFC based project in visual studio c++ 2005 and want to run and see my window(such as add buttons, sample text boxes, and other control objects) that i have write code Pin
_Maxxx_23-Jul-09 0:11
professional_Maxxx_23-Jul-09 0:11 
QuestionSchedule events in C Pin
Member 70409922-Jul-09 11:00
Member 70409922-Jul-09 11:00 
AnswerRe: Schedule events in C Pin
malaugh22-Jul-09 16:10
malaugh22-Jul-09 16:10 
GeneralRe: Schedule events in C Pin
Member 70409930-Jul-09 10:36
Member 70409930-Jul-09 10:36 
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 

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.