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)以下是网上摘取的一段...
阅读全文
dll编程深入浅出——读书笔记(1)
摘要:1)#define MYLIBAPI extern "C" __declspec(dllexport) __declspec(dllexport)说明该函数为DLL的导出函数,可供应用程序调用。 __declspec(dllimport)为内部函数,只能在DLL内使用。 2)DLL的调用步骤:DLL加载-DLL函数地址获取-DLL释放。 下面是一个调用DLL的例子: CodeCode hi...
阅读全文
《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...
阅读全文
#ifdef 如何实现“与或”
摘要:今天改一段代码的时候遇到了一个小问题,代码逻辑如下: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->#ifndef A#endif //ifndef A 现在要加入一个条件B,实现这样一个效果: #ifndef A || ifdef B 显然...
阅读全文
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...
阅读全文