Programming 笔记

工作中遇到的问题就记载这里

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2015年2月6日

摘要: I was trapped by the following scenario:I had a new set update to the production version, let's say revision 371A couple of changes are just reverting... 阅读全文
posted @ 2015-02-06 07:37 IT 笔记 阅读(391) 评论(0) 推荐(0) 编辑

2014年5月8日

摘要: I was very surprise my colleage had the code below and it is working. I thought it should not be able to compile.See the line below, the Fom1 is class... 阅读全文
posted @ 2014-05-08 09:44 IT 笔记 阅读(302) 评论(0) 推荐(0) 编辑

2013年8月30日

摘要: Today my code suddenly give this error if when I try to access setting in my program.Some people said I need to put my namespace before Properties.Settingsso it would be .Properties.Settings.I tried to do that but my name space does not contain "Properties". So I checked the generated code 阅读全文
posted @ 2013-08-30 11:13 IT 笔记 阅读(1126) 评论(0) 推荐(0) 编辑

2011年12月28日

摘要: In ReportViewer, you have 2 options for Images: External or Embedded. I prefer to use embedded Stage 1 Open the RDLC File in Designer and Click Menu Item: Report > Embedded Images. Stage 2 Click on... 阅读全文
posted @ 2011-12-28 12:28 IT 笔记 阅读(236) 评论(0) 推荐(0) 编辑

2011年12月18日

摘要: 如果要用两个程序实现, 必须用实DOS,或者用DosBox。 我是用DosBox实现的。安装和中断例程代码如下assumecs:codecodesegmentstart:;installtionmovax,csmovds,axmovsi,offsetshwtxtmovax,0moves,axmovdi,200hmovcx,offsetshwtxtend-offsetshwtxtcldrepmovsbmovax,0moves,axmovwordptres:[7ch*4],200hmovwordptres:[7ch*4+2],0movax,4c00hint21hshwtxt:pushcxpushs 阅读全文
posted @ 2011-12-18 14:41 IT 笔记 阅读(311) 评论(0) 推荐(0) 编辑

2011年12月8日

摘要: 1. Download the file in blue box from website http://www.springsource.com/, then execute the exe file to install it 2. Create a sample porject called DataAccess in C# console program 3. Add C:\Program Files\Spring.NET 1.3.2\bin\net\2.0\release\Spring.Core.dll (2.0 means framework 2) The solution... 阅读全文
posted @ 2011-12-08 15:07 IT 笔记 阅读(264) 评论(0) 推荐(0) 编辑

2011年12月3日

摘要: 第十章的实验11出的有点不同。一是相对简单一些,还有似乎没有用到太多本章的内容。比如MOVSB 就没用到。下面是我的代码1assumeds:datasg,cs:code2datasgsegment3db"beginner'sAll-purposeSymbolicInstructionCode.",04datasgends5codesegment6begin:movax,datasg7movds,ax8movsi,09callletterc1011movax,4c00h12int21h13letterc:14s:moval,[si]15cmpal,016jeeos17 阅读全文
posted @ 2011-12-03 04:47 IT 笔记 阅读(778) 评论(0) 推荐(0) 编辑

2011年11月22日

摘要: 摘自http://topic.csdn.net/u/20110830/19/15fe0e60-308a-47d2-89ed-81ebe04d1cbb.html?55611subal,al;这步最好理解CFOFSFZFPF00011moval,10H;MOV指令不影响FlagCFOFSFZFPF00011addal,90H;作无符号数,A0H无进位,当作有符号数,16+(-112),在-128~127,无溢出CFOFSFZFPF00101moval,80H;MOV指令不影响FlagCFOFSFZFPF00101addal,80H;作无符号数,100H,进位,作有符号数,(-128)+(-128) 阅读全文
posted @ 2011-11-22 04:09 IT 笔记 阅读(4105) 评论(0) 推荐(1) 编辑

2011年11月3日

摘要: 做这个程序,花了很久时间。回想起来觉得主要原因还是和基础概念有关系。比如:我一开始的程序里面的SHOW_STR里用MOVSS,AX , 这句话造成我的DEBUG到这一行程序就崩溃了。这就造成我没办法DEBUG,只能试着替换一些可疑的地方, 然后直接编译运行来验证结果。MOVSS,AX改成DS入栈MOVDS,AX,...DS出栈就没有DEBUG问题了。看了网上解释是说DEBUG也需要用SS,所以会有这种问题。还有就是进出子程序时,我觉得可以将所有的REGISTER入栈和出栈来保存栈内的值,这样比较容易也轻松很多。但是程序会稍微面一些,因为会将一些子程序没用到的REGISTER入栈和出栈。下面就是 阅读全文
posted @ 2011-11-03 04:00 IT 笔记 阅读(793) 评论(0) 推荐(0) 编辑

2011年9月17日

摘要: 不用多说了,就直接代码吧 1assumecs:codesg,ds:data2datasegment3;00isfillera4;317ahis12666hexvalue5;0000hishighbits.ifthenumberisbigandhexvalueisf317ah,thenhere0000hwillbe0000fh6;000Ahishexvalueof10.7;restof0008harejustfillertomakethedebugvieweaiser8dw00,317ah,0000h,000Ah,0008h,0008h,0008h,0008h910;herewillholdde 阅读全文
posted @ 2011-09-17 21:53 IT 笔记 阅读(584) 评论(0) 推荐(0) 编辑