资源简介
使用vc++6.0MFC开发,抽奖方式分为两种:1.分别随机抽出奖票编号的后几位数字并依次显示,不同奖项抽取的位数和组数不同,所持奖票相应位数相符的员工即获奖;2.随机从员工信息数据库中抽出员工的“ID-姓名”并显示,不同奖项一次性抽取的数量不同。采用第2种方式抽奖时,若中奖员工均在场领奖,则本次抽奖结束;否则,点击“备选”按键补充抽取。

代码片段和文件信息
// Awards.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “Awards.h“
#include “AwardsDlg.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CAwardsApp
BEGIN_MESSAGE_MAP(CAwardsApp CWinApp)
//{{AFX_MSG_MAP(CAwardsApp)
// 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()
/////////////////////////////////////////////////////////////////////////////
// CAwardsApp construction
CAwardsApp::CAwardsApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CAwardsApp object
CAwardsApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CAwardsApp initialization
BOOL CAwardsApp::InitInstance()
{
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
CAwardsDlg 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
}
// Since the dialog has been closed return FALSE so that we exit the
// application rather than start the application‘s message pump.
return FALSE;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2016-08-29 12:58 抽奖\
文件 1084 2015-10-31 10:57 抽奖\awardList.txt
文件 1796748 2015-10-31 10:58 抽奖\Awards.aps
文件 1159 2015-10-31 10:57 抽奖\Awards.clw
文件 2063 2015-10-31 10:57 抽奖\Awards.cpp
文件 4256 2015-10-31 10:57 抽奖\Awards.dsp
文件 535 2015-10-31 10:57 抽奖\Awards.dsw
文件 1324 2015-10-31 10:57 抽奖\Awards.h
文件 58368 2015-10-31 10:57 抽奖\Awards.ncb
文件 53760 2015-10-31 10:57 抽奖\Awards.opt
文件 248 2015-10-31 10:57 抽奖\Awards.plg
文件 5621 2015-10-31 10:57 抽奖\Awards.rc
文件 19988 2015-10-31 10:57 抽奖\AwardsDlg.cpp
文件 1965 2015-10-31 10:57 抽奖\AwardsDlg.h
文件 56 2015-10-31 10:57 抽奖\awardType.txt
目录 0 2015-10-31 10:58 抽奖\Debug\
文件 154 2015-10-31 10:57 抽奖\employeeList.txt
文件 468096 2015-10-31 10:57 抽奖\employeeList1.txt
目录 0 2016-08-29 12:55 抽奖\Image\
文件 377303 2015-10-31 10:57 抽奖\Image\1.jpg
文件 752774 2015-10-31 10:57 抽奖\Image\13.bmp
文件 380472 2015-10-31 10:57 抽奖\Image\2.JPG
文件 1761054 2015-10-31 10:58 抽奖\Image\3.bmp
文件 83385 2015-10-31 10:57 抽奖\Image\3.jpg
文件 11776 2015-10-31 10:57 抽奖\Image\Thumbs.db
文件 3579 2015-10-31 10:57 抽奖\ReadMe.txt
目录 0 2015-10-31 10:58 抽奖\Release\
目录 0 2016-08-29 12:55 抽奖\res\
文件 958 2015-10-31 10:57 抽奖\Resource.h
文件 1078 2015-10-31 10:57 抽奖\res\Awards.ico
文件 398 2015-10-31 10:57 抽奖\res\Awards.rc2
............此处省略15个文件信息
相关资源
- 基于MFC的TCP调试助手源码95706
- 国际象棋的qt源代码
- C++中头文件与源文件的作用详解
- 基于mfc的多线程文件传输
- C++多线程网络编程Socket
- VC++ 多线程文件读写操作
- 利用C++哈希表的方法实现电话号码查
- 移木块游戏,可以自编自玩,vc6.0编写
- C++纯文字DOS超小RPG游戏
- MFC数字钟(基于VC6.0)
- VC++MFC小游戏实例教程(实例)+MFC类库
- 连铸温度场计算程序(C++)
- 6自由度机器人运动学正反解C++程序
- Em算法(使用C++编写)
- libstdc++-4.4.7-4.el6.i686.rpm
- VC++实现CMD命令执行与获得返回信息
- 白话C++(全)
- C++标准库第1、2
- 大数类c++大数类
- C++语言编写串口调试助手
- c++素数筛选法
- C++ mqtt 用法
- ChartCtrl控件库(可在VS2019中使用)
- 商品库存管理系统 C++ MFC
- c++ 多功能计算器
- C++17 In Detail
- 嵌入式QtC++编程课件
- 颜色识别形状识别STM103嵌入式代码
- c++ 邮件多附件群发
- c++ 透明代理(hookproxy)
评论
共有 条评论