8月 022012
 

今天在虚拟机中使用CVS CheckOut的时候出现了”Unable to load MSVCP711.dll (0x0000007e). Check application installation”.的错误,后来在网上查了查,可能是缺少msvcp71.dll的原因,下载了一个msvcp71.dll到X:Program FilesCommon FilesMarch Hare Software Ltd目录后,问题就解决了。

阅读全文
8月 012012
 

1. 当前系统日期、时间 select getdate() 2. dateadd 在向指定日期加上一段时间的基础上,返回新的 datetime 值 例如:向日期加上2天 select dateadd(day,2,’2004-10-15′) –返回:2004-10-17 00:00:00.000 3. datediff 返回跨两个指定日期的日期和时间边界数。 select datediff(day,’2004-09-01′,’2004-09-18′) –返回:17 4. datepart 返回代表指定

阅读全文
7月 162012
 

1. App crashes when it starts, because I make a error to set TextView.textcolor to a String resource Value, it should be a drawable resource value

2. I wrote a function which used Context of the activity. But when I finished coding, eclipse gave an error message. Aft

阅读全文
 Posted by on 2012-07-16
7月 162012
 

When I gave a margin value 10 to TextView, the eclipse give a below error message. error: Error: Integer types not allowed (at ‘layout_margin’ with value ’10’). I searched on internet, and found can’t give a integer value to it, should use 10dip.

阅读全文
 Posted by on 2012-07-16
7月 122012
 

StrictMode is a developer tool which used to detect accident in program. For example, if you do internet access or local file operation in the UI directly, the strictmode mechanism will throw an error to the application. StrictMode is used default since Android 3.0(HoneyComb). example of a wrong cas

阅读全文