04 2009 档案

 
DB2的常用命令 及 与ORACLE的一些区别
摘要:1)今天为程序添加了一段DB2的脚本,运行失败了。原来DB2有些语法跟ORACLE还不一样。 修改字段长度或类型: ORACLE :ALTER TABLE NODES MODIFY NODE_NAME varchar(32); DB2 :alter table NODES ALTER NODE_NAME SET DATA TYPE varchar(32); 2)以下是网上摘取的一段... 阅读全文
posted @ 2009-04-16 15:19 peterxiang 阅读(2718) 评论(0) 推荐(0)
dll编程深入浅出——读书笔记(1)
摘要:1)#define MYLIBAPI extern "C" __declspec(dllexport) __declspec(dllexport)说明该函数为DLL的导出函数,可供应用程序调用。 __declspec(dllimport)为内部函数,只能在DLL内使用。 2)DLL的调用步骤:DLL加载-DLL函数地址获取-DLL释放。 下面是一个调用DLL的例子: CodeCode hi... 阅读全文
posted @ 2009-04-14 23:47 peterxiang 阅读(185) 评论(0) 推荐(0)
《Windows核心编程》读书笔记:Jobs
摘要:How to use Jobs to restricts our process's ability My StartRestrictedProcess function places a process in a job that restricts the process' ability to do certain things: CodeCode highlighting prod... 阅读全文
posted @ 2009-04-08 21:35 peterxiang 阅读(353) 评论(0) 推荐(0)
#ifdef 如何实现“与或”
摘要:今天改一段代码的时候遇到了一个小问题,代码逻辑如下: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->#ifndef A#endif //ifndef A 现在要加入一个条件B,实现这样一个效果: #ifndef A || ifdef B 显然... 阅读全文
posted @ 2009-04-08 17:56 peterxiang 阅读(14248) 评论(1) 推荐(0)
test code insert
摘要:test code insert code1: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->extern "C" const IMAGE_DOS_HEADER __ImageBase;void DumpModule() { // Ge... 阅读全文
posted @ 2009-04-08 13:05 peterxiang 阅读(280) 评论(0) 推荐(0)