03 2014 档案

摘要:第一步设置Help Library Manager区域语言打开Microsoft Visual Studio 2010开始菜单里Visual Studio Tools里的Manage Help Settings - ENU右键属性标签,找到快捷方式目标,修改其区域语言:zh-CN"C:/Program Files/Microsoft Help Viewer/v1.0/HelpLibManager.exe" /product VS /version 100 /locale en-US /brandingPackage Dev10.mshc 修改为:"C:/Progr 阅读全文
posted @ 2014-03-29 17:04 xingrun 阅读(1114) 评论(0) 推荐(0)
摘要:通配符模式下:^13表示回车,^32表示空格第一步,使用通配符替换掉无关文本M?G-C??[A-Z]{1,20}_[A-Z]{1,20}_201?????_?? VirtualTrial[0-9]{1,6}pic-?In[0-9]{1,6}.trl第二步,使用通配符替换删除掉每行的前面几个数据 [-... 阅读全文
posted @ 2014-03-29 10:55 xingrun 阅读(1113) 评论(0) 推荐(0)
摘要:是visual assist X 的问题,更新到VA_X_Setup 2001 解决问题老版本处理:Tools-->Extension Manager-->Uninstall 阅读全文
posted @ 2014-03-18 11:41 xingrun 阅读(400) 评论(0) 推荐(0)
摘要:查询同一个表中某一字段值相同的记录select * from 表名where 字段 in(select 字段 from 表名 group by 字段 having count(1)>1)select * from 表名 awhere exists (select 1 from 表名 where 字段=a.字段 and 主键 a.主键)用select top 查询出多条记录的解决这个问题在开发的时候经常会遇到,比如写了一句查询5条记录的语句“SELECT top 5 * FROM article order by Hits desc”结果显示结果多于5条。是因为,当判断条件Hits有重复时 阅读全文
posted @ 2014-03-08 21:52 xingrun 阅读(693) 评论(0) 推荐(0)
摘要:写在前面: 晚上应该继续完成未写完的代码,但Chrome上打开的标签实在太多了,约30个了,必须关掉一些,所以需要把自己看的整理一下然后关掉。本次主要写点MFC环境下多线程串口通信相关的东西,这包括线程创建及控制、串口同步异步操作、内存非法访问(或者说是线程同步)、线程通信、Windows消息响应过程等。遇到问题: 项目中IO传感器通信模块之前直接写在了主线程中,UI代码和串口通信代码搅合在一起,不利于后期维护,而且有个非常严重的问题,IO通信太忙导致整个系统比较卡,特别是当系统接上超过3个摄像机之后,MFC模态对话框使用Domodal()直接无法打开,卡住了,然后用户就无法操作了,这个问题必 阅读全文
posted @ 2014-03-07 20:46 xingrun 阅读(9806) 评论(0) 推荐(1)
摘要:Error 'LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt' after installing Visual Studio 2012 Release PreviewAnswer1:If disabling incremental linking doesn't work for you, and turning off "Embed Manifest" doesn't work either, then search 阅读全文
posted @ 2014-03-07 17:10 xingrun 阅读(534) 评论(0) 推荐(0)
摘要:TranslateMessage函数函数功能描述:将虚拟键消息转换为字符消息。字符消息被送到调用线程的消息队列中,在下一次线程调用函数GetMessage或PeekMessage时被读出。.函数原型: BOOL TranslateMessage( CONST MSG *lpMsg );.参数: lpMsg 指向一个含有用GetMessage或PeekMessage函数从调用线程的消息队列中取得消息信息的MSG结构的指针。.返回值: 如果消息被转换(即,字符消息被送到线程的消息队列中),返回非零值。 如果消息是 WM_KEYDOWN, WM_KEYUP, WM_SYSKEYDOWN, 或 WM_ 阅读全文
posted @ 2014-03-05 21:08 xingrun 阅读(5802) 评论(0) 推荐(0)
摘要:Questions:I'm using MFC CDialog/CDialogEx to show a modal dialog with DoModal.usually it works without problems, but sometimes, the dialog wont show up until I press ALT key.the scenarios is, I have a timer in the parent window, and doing some work in the OnTimer function, if the work takes too 阅读全文
posted @ 2014-03-02 22:13 xingrun 阅读(1347) 评论(0) 推荐(0)