https://www.myziyuan.com/
- zaijianshaoshi
- // login.cpp : Defines the class behaviors for the application. // #include "stdafx.h" #include "login.h" #include "loginDlg.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CLoginApp BEGIN_MESSAGE_MAP(CLoginApp, CWinApp) //{{AFX_MSG_MAP(CLoginApp) // NOTE - the ClassWizard will add and remove mapping macros here. // DO NOT EDIT what you see in these blocks of generated code! //}}AFX_MSG ON_COMMAND(ID_HELP, CWinApp::OnHelp) END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CLoginApp construction CLoginApp::CLoginApp() { // TODO: add construction1981 code here, // Place all significant initialization in InitInstance } ///////////////////////////////////////////////////////////////////////////// // The one and only CLoginApp object CLoginApp theApp; ///////////////////////////////////////////////////////////////////////////// // CLoginApp initialization BOOL CLoginApp::InitInstance() { AfxEnableControlContainer(); ::CoInitialize(NULL); //初始化 m_pComm.CreateInstance("ADODB.Connection"); try { CString connect="Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=manage;Data Source=(local)"; m_pComm->Open(_bstr_t(connect),"","",adModeUnknown); //打开数据源 } catch(_com_error e) { AfxMessageBox(e.ErrorMessage()); //输出错误信息 return -1; } // m_pRecord.CreateInstance("ADODB.Recordset"); // Standard initialization // If you are not using these features and wish to reduce the size // of your final executable, you should remove from the following // the specific initialization routines you do not need. #ifdef _AFXDLL Enable3dControls();// Call this when using MFC in a shared DLL #else Enable3dControlsStatic(); // Call this when linking to MFC statically #endif CLoginDlg dlg; m_pMainWnd = &dlg; int nResponse = dlg.DoModal(); if (nResponse == IDOK) { // TODO: Place code here to handle when the dialog is // dismissed with OK } else if (nResponse == IDCANCEL) { // TODO: Place code here to handle when the dialog is // dismissed with Cancel dlg.DoModal(); } // Since the dialog has been closed, return FALSE so that we exit the // application, rather than start the application's message pump. return FALSE; } int CLoginApp::ExitInstance() { // TODO: Add your specialized code here and/or call the base class m_pComm->Close(); ::CoUninitialize(); //取消 DestroyWindow((HWND)m_pMainWnd); return CWinApp::ExitInstance(); }
- 2021-12-20 22:38:52
- hz
- x8成员卡管理系统
- 2021-12-20 22:37:51
- qian
- 有既免费又安全的会员管理系统吗,便宜无好货这是至理名言,免费自然更是没有好货,既免费又安全的会员管理系统恐怕也是很难找的。不过我可以介绍曾经用过的深圳商络会员管理软件你试试,我感觉它价钱适中、安全性好、易用,但深圳商络会员管理系统是没有免费的哈。
- 2021-12-20 22:37:51