• 大小: 14.32MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-08-05
  • 语言: C/C++
  • 标签: C++  

资源简介

医药进销存管理系统 C++源码

资源截图

代码片段和文件信息

// a1.cpp : Defines the class behaviors for the application.
//

#include “stdafx.h“
#include “a1.h“
#include “a1Dlg.h“
#include “Myframe.h“
#include “ScrollPrintDoc.h“
#include “ScrollPrintView.h“
#include “myfunction.h“
#include “DlgLogin.h“


#ifdef _DEBUG
#include “TRACEWIN.H“
#endif

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CA1App

BEGIN_MESSAGE_MAP(CA1App CWinApp)
//{{AFX_MSG_MAP(CA1App)
//}}AFX_MSG_MAP
ON_COMMAND(ID_HELP CWinApp::onhelp)
ON_COMMAND( ID_FILE_PRINT_SETUP OnFilePrintSetup ) 
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CA1App construction

CA1App::CA1App()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
// this->m_sUserName;
// this->m_sPurview=“0“;
}

/////////////////////////////////////////////////////////////////////////////
// The one and only CA1App object

CA1App theApp;
  
/////////////////////////////////////////////////////////////////////////////
// CA1App initialization

BOOL CA1App::InitInstance()
{
// CG : Initialize OLE libraries
if (!AfxOleInit())
{
AfxMessageBox(_T(“OLE initialization failed.“));
return FALSE;
}

AfxEnableControlContainer();

// 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
#ifdef _DEBUG
CMfxTrace::Init();
#endif

this->SetRegistryKey(“医药管理系统“);
WriteProfileInt(“Settings“ “x“ 23);
WriteProfileInt(“Settings“ “y“ 12);
WriteProfileInt(“Settings“ “cx“ 32);
WriteProfileInt(“Settings“ “cy“ 1233);
WriteProfileInt(“Settings“ “TraceWhere“ 23);

if(LRunSql::InitConnectPtr()==false) //初始化COM环境,进行数据库连接
return false;
pDocTemplate = new LSingleDocTemplate(
IDR_MENU_MYframe
RUNTIME_CLASS(CScrollPrintDoc)
RUNTIME_CLASS(CMyframe) // main SDI frame window
RUNTIME_CLASS(CScrollPrintView));
AddDocTemplate(pDocTemplate);


CMemoryState mem;
mem.Checkpoint();

CDlgLogin dlg; //创建登录窗口对象
if(dlg.DoModal()==IDOK) //显示登录窗口
{
CA1Dlg *pdlg=new CA1Dlg;//创建主窗口对象
m_pMainWnd = pdlg;
pdlg->DoModal(); //显示主窗口
delete pdlg;
pdlg=NULL;
}

mem.DumpAllobjectsSince();


LRunSql::Close(); //断开数据库连接

// Since the dialog has been closed return FALSE so that we exit the
//  application rather than start the application‘s message pump.
return FALSE;
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件    3188072  2010-03-25 10:46  医药进销存管理系统\a1.aps

     文件          3  2003-10-05 11:40  医药进销存管理系统\a1.bat

     文件      22497  2010-03-25 10:46  医药进销存管理系统\a1.clw

     文件       2930  2005-01-28 19:07  医药进销存管理系统\a1.cpp

     文件      19963  2005-01-28 18:47  医药进销存管理系统\a1.dsp

     文件        909  2004-01-02 11:26  医药进销存管理系统\a1.dsw

     文件       1250  2003-12-06 15:07  医药进销存管理系统\a1.h

     文件    3433472  2010-03-25 10:46  医药进销存管理系统\a1.ncb

     文件      64000  2010-03-25 10:46  医药进销存管理系统\a1.opt

     文件       2305  2005-01-28 19:09  医药进销存管理系统\a1.plg

     文件      38439  2005-01-28 19:09  医药进销存管理系统\a1.rc

     文件        671  2000-01-01 03:04  医药进销存管理系统\a1.reg

     文件      16771  2003-12-25 11:27  医药进销存管理系统\a1Dlg.cpp

     文件       3057  2003-12-19 19:59  医药进销存管理系统\a1Dlg.h

     文件      19097  1998-06-15 00:00  医药进销存管理系统\AFXIMPL.H

     文件        326  2010-03-10 14:19  医药进销存管理系统\arrow.cur

     文件     151625  2005-01-22 14:05  医药进销存管理系统\AutoConfig.exe

     文件      12486  2003-12-27 14:04  医药进销存管理系统\baseList.cpp

     文件       4228  2003-12-25 17:11  医药进销存管理系统\baseList.h

     文件       3129  2003-09-26 19:46  医药进销存管理系统\basePop.cpp

     文件       1727  2003-09-26 19:46  医药进销存管理系统\basePop.h

     文件      13255  2003-12-20 09:17  医药进销存管理系统\baseTabCtrl1.cpp

     文件       4621  2003-12-20 09:16  医药进销存管理系统\baseTabCtrl1.h

     文件       1853  2004-01-03 16:01  医药进销存管理系统\Crypt.cpp

     文件        593  2004-01-02 13:29  医药进销存管理系统\Crypt.h

     文件       1604  2003-10-27 20:02  医药进销存管理系统\DataDH.cpp

     文件        692  2003-12-26 17:10  医药进销存管理系统\DataDH.h

     文件       1183  2003-11-27 16:32  医药进销存管理系统\DataKC.cpp

     文件        692  2003-08-27 13:16  医药进销存管理系统\DataKC.h

     文件       5219  2003-12-10 13:50  医药进销存管理系统\DataKH.cpp

............此处省略309个文件信息

评论

共有 条评论