摘要:
// func1 unsigned __int64 DcPool::dsLockSeqRead(unsigned long termID) { unsigned __int64 ret = 0; long valLen = 0; DWord nSeq = 0; char* pSeq = NULL; KYString key = Format("g.[%010u].watch", t... 阅读全文
摘要:
函数的参数列表是重载的标识符。int fun(int a, dobule b); //编译后生成 : _fun_int_doubleint fun(int a, int b); // 编译后生成 : _fun_int_int根据生成的名称来指定调用哪个版本的函数;fun(1,1.2); // 进行匹 阅读全文
摘要:
*(a+1)就是a[1],*(ptr-1)就是a[4], 执行结果是2, 5。&a+1不是首地址+1,系统会认为加一个a数组的偏移,是偏移了一个数组的大小(本例是5个int)。int *ptr=(int *)(&a+1); 则ptr实际是&(a[5]),也就是a+5 原因如下: &a是数组指针,其类 阅读全文
摘要:
#include <string>#include <iostream>#include <windows.h>#include <winhttp.h> #pragma comment(lib,"winhttp.lib")#pragma comment(lib,"user32.lib") void 阅读全文
摘要:
后台PageVo中字段的geter与setter函数需根据pageVo的字段自动生成,前台字段与后台字段名保持一致。数据返回到前台时,datagrid会根据字段名隐射到相应的getter与setter函数来获取pageVod中的对应字段。// 后台public class CanInfo { pri... 阅读全文
摘要:
PB的安装配置基本上依照网上的教程做就没什么问题;有一点要注意到是当遇到libcmt.lib或msvcrt.lib等lib库与PB中的库冲突时,一定要检查工程的编译方式完全一致,整个项目当中都要注意这一点。/MD:动态链接多线程库(msvcrt.lib)。使用该选项时,需要用/NODEFAULTL... 阅读全文
摘要:
windows server 2003运行一个程序时出现 "应用程序无法正常启动0xc0150002"的错误提示;解决方案:下载地址:http://www.microsoft.com/downloads/details.aspx?displaylang=zh-cn&FamilyID=200b2fd9... 阅读全文
摘要:
declare t_count number(10); t_str VARCHAR2(500); cursor t_tables is select table_name from user_tables;begin for t_row in t_tables loop t_str := 'sele... 阅读全文
摘要:
这个问题的产生根据网上搜集的资料是因为微软的新补丁KB2970228和KB2982791限制了字体文件的使用机制, 而EditorLineEnds.ttr是delphi字体临时文件, 这就导致了delphi启动时无法访问这个文件,启动失败解决方案: 把EditorLineEnds.ttr扩展名改为t... 阅读全文
摘要:
Windows7下安装Oracle11G、10G,都会提示如下信息 正在检查操作系统要求... 要求的结果: 5.0,5.1,5.2,6.0 之一 实际结果: 6.1 检查完成。此次检查的总体结果为: 失败 即可。 阅读全文