摘要: // GPRSwitch.cpp : 定义应用程序的入口点。//#include "stdafx.h"#include "GPRSwitch.h"#include <windows.h>#include <commctrl.h>#include "GprsXmlConfig.h"#include <connmgr.h>#include <ras.h>#include <Raserror.h>//#include <stdio.h>#define MAX_LOADS 阅读全文
posted @ 2012-12-30 15:04 望云风 阅读(1003) 评论(0) 推荐(0) 编辑
摘要: // WifiSwitch.cpp : 定义应用程序的入口点。//#include "stdafx.h"#include "BTHSwitch.h"#include <windows.h>#include <commctrl.h>#include "bthutil.h"#pragma comment(lib, "bthutil.lib")#define MAX_LOADSTRING 100#define WM_CTLCENTER WM_USER+112#define WM_BTHSwitch 阅读全文
posted @ 2012-12-30 15:00 望云风 阅读(484) 评论(0) 推荐(0) 编辑
摘要: 放着防止丢,已经丢过一次了,将近一年的代码全没了。。。// wince alpha 计算__inline void MakeAlpha(WORD* wpSrc, WORD* wpDes, WORD wAlpha){ // (c1-c2)*alpha/32+c2 由(c1*alpha+c2*(32-alpha))/32变形 // 而来,减少了一次乘法运算 // 下面的式子故意写成这样,编译器会把它处理的很好 // 要比这样快一些 // c1 = (((wa << 16) | wa) & 0x7e0f81f); // 16位变形32位 0x7e...f为二进制的... 阅读全文
posted @ 2012-12-30 14:55 望云风 阅读(289) 评论(0) 推荐(0) 编辑