摘要:
按如下的步骤调整内存 1. sqlplus /nolog2. conn / as sysdba 3. show parameter target 4. show parameter sgaalter system set sga_max_size=512M scope=spfile;alter sy 阅读全文
摘要:
从vs2010sp1和vs2013开始就已经支持UTF-8的源码文件了,只用在工程里加入一句"#pragma execution_character_set("UTF-8")"即可 #pragma execution_character_set("UTF-8") 阅读全文
摘要:
#include //判断文件夹是否存在 #include //创建文件夹 //创建本地目录 int createDir(const char* localPath ) { if(0 == _access(localPath,0)) //判断文件夹是否存在 return 0; if(0 != _mkdir(localPath) ... 阅读全文
摘要:
#include #include #include inline std::string loadFileEx(const char* path) { setlocale(LC_ALL,"Chinese-simplified");//设置环境中文 std::ifstream ifs(path); setlocale(LC_ALL,"C");//还原环境 r... 阅读全文
摘要:
介绍:对Windows系统服务的状态获取,服务暂停,开启,停止操作代码 阅读全文
摘要:
内存管理是C++程序员的痛。我的《内存管理变革》系列就是试图讨论更为有效的内存管理方式,以杜绝(或减少)内存泄漏,减轻C++程序员的负担。由于工作忙的缘故,这个系列目前未完,暂停。这篇短文我想换个方式,讨论一下如何以最快的速度找到内存泄漏。1、确认是否存在内存泄漏我们知道,MFC程序如果检测到存在内... 阅读全文
摘要:
三个SDK函数 winexec, shellexecute,createprocess可以使用。WinExec 最简单,两个参数,前一个指定路径,后一个指定显示方式.后一个参数值得说一下,比如泥用 SW_SHOWMAXMIZED 方式去加栽一个无最大化按钮的程序,呵呵就是Neterm,calc 等等... 阅读全文
摘要:
//截图int cropImage(const char* file, int left, int top, int right, int bottom, BYTE* &dstData, DWORD& dstLen){ DWORD dw1 = GetTickCount(); fipIma... 阅读全文
摘要:
#登陆数据库sqlplus system/*** as sysdba#显示当前最大连接数:show parameter processes; show parameter sessions;#修改最大连接数:alter system set processes = 300 scope = spfil... 阅读全文