12 2011 档案

外键(Access中设置表的外键)
摘要:http://office.microsoft.com/assistance/hfws.aspx?AssetID=HP0518753020521. 设置外键2. 实现级联更新、级联删除 阅读全文

posted @ 2011-12-28 13:59 LateStop 阅读(6519) 评论(0) 推荐(0)

得到程序.exe所在路径
摘要:CString path; GetModuleFileName(NULL,path.GetBufferSetLength(MAX_PATH+1),MAX_PATH);// 寻找当前安装路径 path.ReleaseBuffer(); //去掉xxx.exe,得到目录 int pos = path.ReverseFind('\\'); // 反向查找第一个backslash path = path.Left(pos); // 得到该backslash以左的内容 pos = path.ReverseFind('\\'); path = path.L... 阅读全文

posted @ 2011-12-20 17:27 LateStop 阅读(407) 评论(0) 推荐(0)

常用SQL语句
摘要:1.增:insert into GroupManage (DevID,GrpID)values (1000,1001)2.删:DELETE *FROM Dev_Grp_RelationshipWHERE DevID=10000 And GrpID=10000;3.查:嵌套查询:SELECT *FROM devicesWHERE (devices.[dev_ID]) In (select DevID from Dev_Grp_Relationship where GrpID = 5)去重:distinctselect distinct devID, dev_NameFrom deviceswhe 阅读全文

posted @ 2011-12-19 17:53 LateStop 阅读(269) 评论(0) 推荐(0)

ffmpeg常用命令
摘要:1.将rmvb转换为aviffmpeg -i 33.rmvb -s 320*240 -vcodec msmpeg4 out.avi2.从视频里截取一段"version1ffmpeg -i movie.avi -ss 00:51:42 -t 00:03:30 clip.aviThis will get you the desired clip. Now let me explain you the commands in short:-i movie.avi - this is the input file-ss hh:mm:ss - this is the time at which 阅读全文

posted @ 2011-12-12 11:33 LateStop 阅读(403) 评论(0) 推荐(0)

将path里的分号替换成回车
摘要:1 #Filename:replace.py2 3 srcf = file('sys_new.txt','r')4 oldStr = srcf.read();5 newStr = oldStr.replace('\n','')6 7 #print newStr8 desf = file('sys.txt','w')9 desf.write(newStr)本应该用VIM的替换实现的,无奈不知道如何在VIM里表示回车。更新:VIM将某字符串替换成回车::%s/;/^M/g难点在于如何输入^M。即表示一个 阅读全文

posted @ 2011-12-10 12:48 LateStop 阅读(586) 评论(0) 推荐(0)

【VIM自动补全】NeoComplCache
摘要:NeoComplCache这个自动插件简直屌爆了。用vim.org的官方选项来评价,就是:Life Changing。安装也很简单:1. 下载插件,将里面的文件拷贝到~/vim/vimfile里对应的文件夹下。2. 在.vimrc文件里加入自动启动的命令: let g:neocomplcache_enable_at_startup = 1 或者运行::NeoComplCacheEnable 命令。以上两步官方说明十分齐全。配置:"使用带force的选项,使一个键只帮一个作用。比较清爽" open the snippetimap <silent><C-l&g 阅读全文

posted @ 2011-12-06 12:48 LateStop 阅读(4196) 评论(0) 推荐(0)

MFC连接Access
摘要:1. 导入dll,使用命名空间。 a.在stdafx.h里加入如下语句:#import "C:\Program Files\Common Files\System\ADO\msado15.dll" rename("EOF","adoEOF"), rename("BOF","adoBOF")b.在需要使用的文件里使用命名空间using namespace ADODB;c.在使用之前加上CoInitialize(NULL);使其初始化。否则提示空指针错误。2. 连接。a.新建一个_Connectio 阅读全文

posted @ 2011-12-01 11:03 LateStop 阅读(4721) 评论(0) 推荐(3)

导航