资源简介
mfc获取mac地址的小程序
获取并拷贝到剪贴板
程序及源码均在,vs2010工程

代码片段和文件信息
// GetMacAddress.cpp : 定义应用程序的类行为。
//
#include “stdafx.h“
#include “GetMacAddress.h“
#include “GetMacAddressDlg.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// CGetMacAddressApp
BEGIN_MESSAGE_MAP(CGetMacAddressApp CWinApp)
ON_COMMAND(ID_HELP &CWinApp::onhelp)
END_MESSAGE_MAP()
// CGetMacAddressApp 构造
CGetMacAddressApp::CGetMacAddressApp()
{
// 支持重新启动管理器
m_dwRestartManagerSupportFlags = AFX_RESTART_MANAGER_SUPPORT_RESTART;
// TODO: 在此处添加构造代码,
// 将所有重要的初始化放置在 InitInstance 中
}
// 唯一的一个 CGetMacAddressApp 对象
CGetMacAddressApp theApp;
// CGetMacAddressApp 初始化
BOOL CGetMacAddressApp::InitInstance()
{
// 如果一个运行在 Windows XP 上的应用程序清单指定要
// 使用 ComCtl32.dll 版本 6 或更高版本来启用可视化方式,
//则需要 InitCommonControlsEx()。否则,将无法创建窗口。
INITCOMMONCONTROLSEX InitCtrls;
InitCtrls.dwSize = sizeof(InitCtrls);
// 将它设置为包括所有要在应用程序中使用的
// 公共控件类。
InitCtrls.dwICC = ICC_WIN95_CLASSES;
InitCommonControlsEx(&InitCtrls);
CWinApp::InitInstance();
AfxEnableControlContainer();
// 创建 shell 管理器,以防对话框包含
// 任何 shell 树视图控件或 shell 列表视图控件。
CShellManager *pShellManager = new CShellManager;
// 标准初始化
// 如果未使用这些功能并希望减小
// 最终可执行文件的大小,则应移除下列
// 不需要的特定初始化例程
// 更改用于存储设置的注册表项
// TODO: 应适当修改该字符串,
// 例如修改为公司或组织名
SetRegistryKey(_T(“应用程序向导生成的本地应用程序“));
CGetMacAddressDlg dlg;
m_pMainWnd = &dlg;
INT_PTR nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: 在此放置处理何时用
// “确定”来关闭对话框的代码
}
else if (nResponse == IDCANCEL)
{
// TODO: 在此放置处理何时用
// “取消”来关闭对话框的代码
}
// 删除上面创建的 shell 管理器。
if (pShellManager != NULL)
{
delete pShellManager;
}
// 由于对话框已关闭,所以将返回 FALSE 以便退出应用程序,
// 而不是启动应用程序的消息泵。
return FALSE;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
....... 2084 2016-09-19 14:54 GetMacAddress\GetMacAddress\GetMacAddress\GetMacAddress.cpp
....... 484 2016-09-19 14:54 GetMacAddress\GetMacAddress\GetMacAddress\GetMacAddress.h
....... 8802 2016-09-19 14:54 GetMacAddress\GetMacAddress\GetMacAddress\GetMacAddress.rc
....... 6147 2016-09-19 15:18 GetMacAddress\GetMacAddress\GetMacAddress\GetMacAddress.vcxproj
....... 6372 2016-09-19 14:54 GetMacAddress\GetMacAddress\GetMacAddress\GetMacAddressDlg.cpp
....... 696 2016-09-19 14:54 GetMacAddress\GetMacAddress\GetMacAddress\GetMacAddressDlg.h
....... 3255 2016-09-19 14:54 GetMacAddress\GetMacAddress\GetMacAddress\ReadMe.txt
....... 67777 2016-09-19 14:54 GetMacAddress\GetMacAddress\GetMacAddress\res\GetMacAddress.ico
....... 682 2016-09-19 14:54 GetMacAddress\GetMacAddress\GetMacAddress\res\GetMacAddress.rc2
....... 1372 2016-09-19 14:54 GetMacAddress\GetMacAddress\GetMacAddress\resource.h
....... 146 2016-09-19 14:54 GetMacAddress\GetMacAddress\GetMacAddress\stdafx.cpp
....... 1632 2016-09-19 14:54 GetMacAddress\GetMacAddress\GetMacAddress\stdafx.h
....... 234 2016-09-19 14:54 GetMacAddress\GetMacAddress\GetMacAddress\targetver.h
....... 906 2016-09-19 14:54 GetMacAddress\GetMacAddress\GetMacAddress.sln
文件 1743360 2016-09-28 22:43 GetMacAddress\GetMacAddress\Release\GetMacAddress.exe
目录 0 2016-09-23 18:00 GetMacAddress\GetMacAddress\GetMacAddress\res
目录 0 2016-09-28 22:45 GetMacAddress\GetMacAddress\GetMacAddress
目录 0 2016-09-28 22:44 GetMacAddress\GetMacAddress\Release
目录 0 2016-09-28 22:44 GetMacAddress\GetMacAddress
目录 0 2016-09-28 22:40 GetMacAddress
----------- --------- ---------- ----- ----
1843949 20
- 上一篇:c语言编程统计装箱问题
- 下一篇:马石安编写的VC++程序设计与应用程序设计习题解答
相关资源
- 基于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++编程课件
- stm32 +w5500 裸机 远程升级 自动dns pi
- 颜色识别形状识别STM103嵌入式代码
- c++ 邮件多附件群发
评论
共有 条评论