上一页 1 2 3 4 5 6 7 ··· 11 下一页

2012年1月10日

Attach函数的讲解

摘要: 传送门:http://www.cppblog.com/lateCpp/articles/140631.html 阅读全文

posted @ 2012-01-10 11:01 LateStop 阅读(282) 评论(0) 推荐(0)

2011年12月28日

外键(Access中设置表的外键)

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

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

2011年12月20日

得到程序.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 阅读(403) 评论(0) 推荐(0)

2011年12月19日

常用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 阅读(268) 评论(0) 推荐(0)

2011年12月12日

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 阅读(401) 评论(0) 推荐(0)

2011年12月10日

将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 阅读(567) 评论(0) 推荐(0)

2011年12月6日

【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 阅读(4186) 评论(0) 推荐(0)

2011年12月1日

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 阅读(4709) 评论(0) 推荐(3)

2011年11月23日

return 0 与 return -1

摘要: 背景:将用户登录对话框放在了int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)函数里。代码如下: if(IDOK != m_LoginDlg.DoModal()) { return -1; } 原来返回FALSE,在直接关闭登录对话框时还会继续创建窗口;如果返回-1的话则直接退出。与期望的一样。参见MSDN的解释:OnCreate must return 0 to continue the creation of the CWnd object. If the application returns –1, the window... 阅读全文

posted @ 2011-11-23 14:18 LateStop 阅读(472) 评论(0) 推荐(0)

2011年11月22日

DosHere

摘要: REGEDIT4[HKEY_CLASSES_ROOT\Folder\shell\Dos Prompt Here]@="Dos Prompt Here"[HKEY_CLASSES_ROOT\Folder\shell\Dos Prompt Here\command]@="cmd.exe /c start cmd.exe /k pushd \"%L\"" 阅读全文

posted @ 2011-11-22 21:21 LateStop 阅读(285) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 ··· 11 下一页

导航