给大家分享几个图片。

给大家一些源码?
里边有错误,看看哪个大神能看出来,呵呵。答对有有奖。呵呵。
第一段代码:
BOOL CLaminatorDlg::PreTranslateMessage(MSG* pMsg)
{
// TODO: Add your specialized code here and/or call the base class
if(pMsg->message == WM_KEYDOWN)
if (pMsg->wParam==VK_RETURN||pMsg->wParam==VK_ESCAPE) //||pMsg->wParam==VK_RETURN pMsg->wParam==VK_ESCAPE
return TRUE;
if (pMsg->message == WM_SYSKEYDOWN && pMsg->wParam == VK_F4 )
return TRUE;
return CDialog::PreTranslateMessage(pMsg);
//return CDialog::PreTranslateMessage(pMsg);
}
第二段代码:
void CLaminatorDlg::OnOK()
{
CString cstext,pass ,access;
int nIndex=m_ComboxBitmap.GetCurSel();
m_ComboxBitmap.GetLBText(nIndex,cstext);
AfxMessageBox(cstext);
CWnd *edit=CDialog::GetDlgItem(IDC_PASSWORDS);
edit->GetWindowText(pass);
m_pConn=Database::GetDBConnection();
CDaoRecordset record(m_pConn);
access.Format(_T("select password from user where username='%s'",cstext));
record.Open(dbOpenDynaset,access);
int count =record.GetRecordCount();
if (record.GetRecordCount()==1)
{
AfxMessageBox(_T("Login successful"));
}else
AfxMessageBox(_T("失败"));
}
第三段代码:
class Database
{
public:
static CDaoDatabase* Database::GetDBConnection();
private :
Database();
virtual ~Database();
CDaoDatabase* m_pDB;
};
放亮你们的眼找一下吧,告诉你一下我的是uincode的编码。找一下,答对有有奖。呵呵。