摘要: heat.exe dir "./SampleFolder" -cg Files -dr INSTALLDIR -gg -g1 -sf -srd -var "var.TargetDir" -out "FolderStructure.wxs" //SampleFolder 需要打包的文件夹 -srd 忽略根文件夹 阅读全文
posted @ 2013-07-24 15:02 ximenchuixie 阅读(391) 评论(0) 推荐(0) 编辑
摘要: 自定义FOREACH循环,便于coding在指定xml的nodelist b中遍历每个节点#define FOREACH_NODE(a,b)\ long cnt = 0; \ CComPtr a;\ b->get_length(&cnt);\ for(int i = 0; i get_item(i,&a)); i++, a = NULL) //get_item(i,&a) // 用此函数时第二个参数要初始化为空,此例a=NULL 阅读全文
posted @ 2013-07-23 14:26 ximenchuixie 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 一、数字音频基础知识Fourier级数:任何周期的波形可以分解成多个正弦波,这些正弦波的频率都是整数倍。级数中其他正线波的频率是基础频率的整数倍。基础频率称为一级谐波。PCM:pulse code modulation,脉冲编码调制,即对波形按照固定周期频率采样。为了保证采样后数据质量,采样频率必须是样本声音最高频率的两倍,这就是Nyquist频率。样本大小:采样后用于存储振幅级的位数,实际就是脉冲编码的阶梯数,位数越大表明精度越高,这一点学过数字逻辑电路的应该清楚。声音强度:波形振幅的平方。两个声音强度上的差常以分贝(db)为单位来度量,计算公式如下:20*log(A1/A2)分贝。A1,A 阅读全文
posted @ 2013-07-10 05:12 ximenchuixie 阅读(546) 评论(0) 推荐(0) 编辑
摘要: http://msdn.microsoft.com/zh-cn/library/8yh4zs9e(v=vs.80).aspxhttp://www.cnblogs.com/Ray-chen/archive/2011/12/14/2287812.html 阅读全文
posted @ 2013-07-02 01:30 ximenchuixie 阅读(361) 评论(0) 推荐(0) 编辑
摘要: 可先用其他格式转换软件转换一段0秒指定格式的音频,然后用mcisendstring(L"open xxx.avi alias abc",0,0,0)打开,在进行录音mcisendstring(L"record abc",0,0,0)即可 阅读全文
posted @ 2013-07-02 00:00 ximenchuixie 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 放在文本输入框,其他的什么都不用做 还有一些其他的参数,比如设置语音限制语言种类转自:http://blog.csdn.net/jrsnd/article/details/7889606 阅读全文
posted @ 2013-06-24 15:25 ximenchuixie 阅读(206) 评论(0) 推荐(0) 编辑
摘要: win32允许前置窗口函数AllowSetForegroundWindow(HWND hWnd)该函数允许其他窗口调用SetForegroundWindow()(将窗口设为前置窗口),前提是调用AllowSetForegroundWindow()函数的窗口已经是前置窗口与之对应的LockSetForegroundWindow (),不允许前置窗口 阅读全文
posted @ 2013-06-17 14:19 ximenchuixie 阅读(447) 评论(0) 推荐(0) 编辑
摘要: 示例代码:转自MSDN:CFileFind finder; BOOL bWorking = finder.FindFile("*.*"); while (bWorking) { bWorking = finder.FindNextFile(); cout << (LPCTSTR) finder.GetFileName() << endl; }若要获得文件具体信息(如文件名,文件路径等)则在调用FindFile后至少调用一次FindNextFile; FindFile函数可理解为“开始搜索” 阅读全文
posted @ 2013-06-14 17:52 ximenchuixie 阅读(266) 评论(0) 推荐(0) 编辑
摘要: 添加头文件:#include <GdiPlus.h>using namespace Gdiplus;#pragma comment(lib, "gdiplus.lib")若编译出现错误,将stdafx.h中 "#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers "注释掉即可使用GDI+前要进行初始化GdiplusStartupInput gdiplusStartupInput;ULONG_PTR gdiplusToken;GdiplusSt 阅读全文
posted @ 2013-06-14 00:16 ximenchuixie 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 设备上下文(Device Context):位于程序和显示设备的中间层,方便编码,避免针对不同显示设备编写不同代码。win32通过DC画图.DC 通过SelectObject方法来设置属性,例如背景图,画笔颜色等等。特殊DC: 内存DC(位于内存中):例子:HDC Hdc;HBITMAP hBit2;hdc = CreateCompatibleDC(GetDC());hBit2 = CreateCompatibleBitmap(hdc,rct.right - rct.left,rct.bottom - rct.top);SelectObject(myHdc2,hBit2); ... 阅读全文
posted @ 2013-06-14 00:03 ximenchuixie 阅读(529) 评论(0) 推荐(0) 编辑