摘要: Under “HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Internet/Settings/Zones”, create a new key called 1000 (if it isn't already there)-Under 1000, create a DWORD entry with:o Name = 1207o Type = REG_DWORDo Data = 0x000000Following is a brief explanation of the problem and the work 阅读全文
posted @ 2013-05-14 10:44 冷疯子 阅读(99) 评论(0) 推荐(0)
摘要: stdafx.h中添加:#if defined _M_IX86#pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")#eli 阅读全文
posted @ 2012-06-14 10:45 冷疯子 阅读(162) 评论(0) 推荐(0)
摘要: Q:创建 empty project,而后添加 stdafx.h , stdafx.cpp 后,在 C/C++ - Precompiled Headers : Use Precompiled Header总是提示not the pdb file that was used when this precompiled header was created, recreate the precompiled headerA:stdafx.cpp 文件的预编译选项永远是“Create Precompiled Headers (/Yc)”;工程的预编译选项一般为“Use Precompiled Hea 阅读全文
posted @ 2011-09-19 09:40 冷疯子 阅读(1941) 评论(0) 推荐(0)
摘要: 1、作为预编译:#define _UNICODE#define log() do{ _tprintf(_T("%s"), __FILE__ ); --> 可正常使用}while(0)2、作为函数int __cdcel Log::log(const TCHAR *fmt, ...){ ... va_list arglist; va_start(arglist, fmt); _vstprintf_s_l(msg, 1024, fmt, NULL, arglist); ...}Log x;x.log(_T("%s"), __FILE__ ); ----& 阅读全文
posted @ 2011-06-22 17:18 冷疯子 阅读(264) 评论(0) 推荐(0)
摘要: 1、四种方式: 1) METHOD_BUFFERED : IN : IRP.AssociatedIrp.SystemBuffer OUT : IRP.AssociatedIrp.SystemBuffer I/O Manager负责将输入缓冲区的内容拷贝到AssociatedIrp.SystemBuffer 先; 往AssociatedIrp.SystemBuffer写入输出数据后,I/O Manager负责将AssociatedIrp.SystemBuffer里的输出数据拷贝到用户层的输出缓冲区 2)METHOD_IN_DIRECT : IN : IRP.AssociatedIrp.Syste 阅读全文
posted @ 2011-03-23 10:53 冷疯子 阅读(328) 评论(0) 推荐(0)
摘要: WIN: 1 #define LOG( format, ... ) \ 2 do{ \ 3 fprintf( stderr, format, ##__VA_ARGS__ ); \ 4 }while(0) 5 6 LOG("hEIHEI, %s %d\n", "sdfs", 333); // -> hEIHEI, sdfs 333 7 8 #define XLOG( format, ... ) \ 9 do{ \ 10 fprintf( stderr, "[%s@%s,%d]" format "\n", __F 阅读全文
posted @ 2011-03-17 16:46 冷疯子 阅读(275) 评论(0) 推荐(0)
摘要: 1、虚拟机下的系统关闭状态下2、Output to named pipe3、Named pipe: \\.\pipe\com_1 This end is the server. The other end is an application. Choose:Connect at power on4、I/O mode: Choose Yield CPU on poll5、在 boot.ini 添加一个新的启动选项:【Note:debugport 是在添加串口时的那个名字 com_1,而非网上说的 com1】multi(0)disk(0)rdisk(0)partition(1)\WINDOWS=& 阅读全文
posted @ 2011-03-11 16:18 冷疯子 阅读(213) 评论(0) 推荐(0)
摘要: ACCESS:1、往表插入数据: sql = "INSERT INTO Tbl(col1, col2....) VALUES(val1, val2....)" Dim db as Database Set db = CurrentDb db.Execute sql2、对于自动编号的列,删除所有记录后,编号不会重新从头开始,如何回复? sql = "ALTER TABLE Tbl ALTER COLUMN Colname COUNTER(1, 1)" DoCmd.RunSQL sql3、通过 “工具” - “启动” 中的选项,可以再打开ACCESS数据库时 阅读全文
posted @ 2011-02-21 17:35 冷疯子 阅读(267) 评论(0) 推荐(0)
摘要: __declspec(selectany) 阅读全文
posted @ 2011-01-26 16:12 冷疯子 阅读(182) 评论(0) 推荐(0)
摘要: 1、到sqlite cipher下载多文件的源文件包:sqlite-src-3070400.zip2、VS2005建立空的 WIN32 dll 项目,添加文件: sqlite3.h sqlite3.c3、C/C++ - Preprocessor 中定义宏4、Linker - Input 添加OpenSSL依赖库 libeay32.lib5、修改def 阅读全文
posted @ 2011-01-25 10:02 冷疯子 阅读(428) 评论(0) 推荐(0)