
Windows
文章平均质量分 64
牛仔好鬼忙
Hope is a good thing, maybe the best of things and no good thing ever dies!
展开
-
windows 使用技巧
Windows7启用关闭休眠功能以管理员启动命令行窗口,输入powercfg -h on来启动休眠通过dir c:\ /ah来查看hiberfile.sys文件给创建,该文件大小与物理内存大小一致通过powercfg -h off来关闭休眠,同时删除上述文件。原创 2012-12-24 09:11:37 · 826 阅读 · 0 评论 -
windows下mingw与codeblock环境下开发mysql
1. 安装codeblock2. 下载mysql-connector-c压缩包codeblock添加额外的头文件原创 2014-10-08 16:08:17 · 1272 阅读 · 0 评论 -
windows下mingw与eclipse cdt的环境搭建
安装mingw编译器模拟gcc/g++原创 2014-10-08 12:34:15 · 608 阅读 · 0 评论 -
LoadLibrary和GetModuleHandle的区别
LoadLibrary是把一个模块映射进调用进程的地址空间,需要时增加引用计数,每调用一次,引用计数增加一,需要通过相同步骤地调用FreeLibrary来减少引用次数,当为0时,系统卸载DLL。HMODULE WINAPI LoadLibrary( __in LPCTSTR lpFileName);lpFileName 如果提供了路径(须使用backslashes(\),不要使用原创 2013-01-09 15:42:07 · 10885 阅读 · 0 评论 -
Operating System Version
methods1. GetVersion functionRetrieves the version number of the current operating system.Note This function has been superseded byGetVersionEx. New applications should useGetVersionEx o原创 2013-01-05 18:31:49 · 2310 阅读 · 0 评论 -
NLS编程
NLS(National Language Support)Background(背景)Each language has a language name and a language identifierthat indicate the particular code page (ANSI, DOS, Macintosh) used to represent the geographi原创 2013-01-05 17:07:58 · 916 阅读 · 0 评论 -
分析IPMSG源代码
WinMain与mainWinMain的原型:int CALLBACK WinMain( __in HINSTANCE hInstance, __in HINSTANCE hPrevInstance, __in LPSTR lpCmdLine, __in int nCmdShow);WinMain的定义:WinMain is the co原创 2013-01-03 14:20:07 · 2273 阅读 · 0 评论 -
C#多线程实现方法——Task/Task.Factary
Task使用Task以及Task.Factory都是在.Net 4引用的。Task跟Thread很类似,通过下面例子可以看到。 static public void ThreadMain() { Thread t1 = new Thread(TaskWorker); t1.Start(3);原创 2012-12-27 15:56:17 · 33824 阅读 · 0 评论 -
SEH结构异常处理使用
编译错误error C2712: Cannot use __try in functions that require object unwinding附录:SEH异常代码define in #define WAIT_IO_COMPLETION STATUS_USER_APC#define STILL_ACTIVE原创 2012-12-27 09:44:03 · 2603 阅读 · 0 评论 -
linux 时间同步
ntpdate 时间服务器的地址或者域名转载 2014-11-12 17:32:26 · 446 阅读 · 0 评论