- 博客(6)
- 资源 (9)
- 收藏
- 关注
转载 获得MAC地址
源代码: #include #include #include"iphlpapi.h" #pragma comment(lib,"Iphlpapi.lib") int main(int argc,char*argv[]) { PIP_ADAPTER_INFO pAdapterInfo; PIP_ADAPTER_INFO pAdapter=NULL;
2014-08-07 19:31:57
322
原创 wince下获得网卡MAC地址(不用连接网络)
// getmac0001.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "getmac0001.h" #include #include #include "iphlpapi.h" #include #pragma comment(
2014-08-07 19:12:23
1216
转载 wince获得mac地址(需要连接网络或路由器)
#include "stdafx.h" #include "ipexport.h" #include #include #include #include #include "Winsock2.h" int _tmain() { HRESULT hr; IPAddr ipAddr; ULONG pulMac[2];
2014-08-06 19:53:16
430
转载 Ansi转Unicode 介绍2种方法
Ansi转Unicode 介绍2种方法 void CConvertDlg::OnBnClickedButtonAnsiToUnicode() { // ansi to unicode char* szAnsi = "abcd1234你我他"; //预转换,得到所需空间的大小 int wcsLen = ::MultiByteToWide
2014-08-02 13:34:56
2084
原创 点阵转换为RGB565,wince显示
UINT8 dot; //应该会损失数据内容 UINT16 s; CBitmap bmp; UINT16 buf[IMAGE_WIDTH*24]; memset(buf,0x00,IMAGE_WIDTH*24*2); CFile f(_T("\\Nand\\姓名.bmp"),CFile::typeBinary|CFile::modeRead); //字符转换 for(int i
2014-07-25 18:33:50
557
原创 RGB888转RGB565,wince BMP控件显示位图
UINT8 r, g, b; //应该会损失数据内容 UINT16 s; CBitmap bmp; UINT16 buf[90*120]; CFile f(_T("\\nand\\123.bmp"),CFile::typeBinary|CFile::modeRead); //图像翻转 for(int i=0; i { for (int j=0;
2014-07-23 16:45:19
517
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人