摘要: 转载请声明 阅读全文
posted @ 2019-11-22 22:51 望云风 阅读(377) 评论(0) 推荐(0) 编辑
摘要: 来自 http://www.rediware.com/programming/vb/vbrecwav/vbrecordwav.htm 的方法,经过修改简化使用VB录音,修改音频参数:RetLng = mciSendString("Set Wave Time Format ms", "", 0, 0)RetLng = mciSendString("Set Wave Format tag pcm", "", 0, 0)RetLng = mciSendString("Set Wave Channels 1&qu 阅读全文
posted @ 2013-03-10 10:44 望云风 阅读(2754) 评论(0) 推荐(0) 编辑
摘要: 下载个随便什么wsyscheck什么的即可,然后把ime的注入模块卸载掉就可以了,是卸载安装包中的一个进程,不是msiexec,是InstallXPVCom.exe。搜狗输入法亲测,浪费了我一晚上的等待时间,早上试了下就可以安装了。 阅读全文
posted @ 2013-01-01 09:39 望云风 阅读(296) 评论(0) 推荐(0) 编辑
摘要: // 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 望云风 阅读(483) 评论(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) 编辑
摘要: 今天写了个程序要求字符串提取字符,结果用了以下代码不能正确返回。char* CharToStr(char a, char b){ char str[3]; str[0] = a; str[1] = b; str[2] = '\0'; return str;}后来网上查了下,才发现是作用域的问题。可以用static保存返回值。char* CharToStr(char a, char b){ static char str[3]; str[0] = a; str[1] = b; str[2] = '\0'; return str;}放着提醒自己下。 阅读全文
posted @ 2012-09-27 22:46 望云风 阅读(217) 评论(0) 推荐(0) 编辑
摘要: --------------------------------------------------------------------------------------------------------------------------------------- .h#include "RdWrtIni.h"#include <time.h>#include <atlbase.h>#include <pm.h>// 重啟數據定義#define CTL_CODE( DeviceType, Function, Method, Acce 阅读全文
posted @ 2012-09-03 10:49 望云风 阅读(611) 评论(0) 推荐(0) 编辑
摘要: 用到了RdWrtIni.hRdWrtIni.cpp,不知道是誰寫的,用來讀取ini,感謝他的分享。用到了IImage庫。// HelloWorldTodayPlug.cpp : 定义 DLL 应用程序的入口点。//extern "C" _declspec(dllexport) HWND APIENTRY InitializeCustomItem(TODAYLISTITEM, HWND);extern "C" _declspec(dllexport) DWORD APIENTRY CustomOptionsDlgProc();#include " 阅读全文
posted @ 2012-09-02 00:18 望云风 阅读(365) 评论(0) 推荐(0) 编辑
摘要: WinCE下枚舉窗體的函數與Win32不同,所以要用到GetWindow要用到GetWindow的第二個參數有GW_HWNDNEXT,GW_CHILD。用Task Manager觀察下窗口句柄,發現今日在DesktopExplorerWindow類下,所以先取得母句柄:hParent = FindWindow(_T("DesktopExplorerWindow"), _T("Desktop"));接下來是取得子窗口句柄:hWndPhonEx = GetWindow(hParent, GW_CHILD);在母窗口下有各個插件的句柄,但是如果直接用GW_HW 阅读全文
posted @ 2012-08-31 00:16 望云风 阅读(480) 评论(0) 推荐(0) 编辑