06 2013 档案

Google App Engine - Cookie Handling with URL Fetch
摘要:I started working on creating a web based solution (onGoogle App Engine, using the Python API of course) to send mass SMS messages through your Google Voice account this week, but ran into a couple of problems right off the bat during some initial testing. The problem was that I could not log into m 阅读全文

posted @ 2013-06-29 23:34 圣光 阅读(375) 评论(0) 推荐(0)

用VBS读写二进制文件
摘要:Function ReadBinary(FileName) Dim Buf(), I With CreateObject("ADODB.Stream") .Mode = 3: .Type = 1: .Open: .LoadFromFile FileName ReDim Buf(.Size - 1) For I = 0 To .Size - 1: Buf(I) = AscB(.Read(1)): Next .Close End With ReadBinary = BufEnd FunctionSub WriteBinary(FileName, Buf) Dim ... 阅读全文

posted @ 2013-06-26 13:29 圣光 阅读(1250) 评论(0) 推荐(0)

关于VB6类模块中错误捕捉的问题
摘要:调试代码的时候,在同一个模块下,如果过程1调用过程2,而过程2抛出错误,则可以通过在过程1中写On Error Resume Next捕捉这个错误如果过程1调用了类模块中的过程3,而过程3抛出错误,中断会停留在过程3错误处。'Class1中Public Sub Test() Err.Raise 1End Sub'Form1中调用Test()解决方法如下:代码编辑器->右键菜单->切换->选中"遇到未处理的错误时中断"可在IDE菜单->工具->选项->通用->错误捕获中设置它的默认值.参考:http://bbs.csd 阅读全文

posted @ 2013-06-21 05:11 圣光 阅读(524) 评论(0) 推荐(0)

Visual Basic的调试和错误处理
摘要:无论你怎样认真细致地编写代码,错误总会(可能会)发生。理论上讲,Visual Basic过程根本不需要错误处理代码。然而不幸的是,有时会出现错误删除文件、磁盘驱动器空间满或网络驱动器意外断开等情况,这就存在导致代码中发生运行时错误的可能性。为处理这些错误,需要在你编写的过程中添加错误处理代码。有时,错误还可能在代码内部发生;这种类型的错误通常被称作bug(错误)。小的错误会带来失败或不便。更严重的错误会造成应用程序对命令响应的中断,可能需要用户重新启动应用程序并造成未保存的所有工作被丢失。对应用程序中的错误进行定位和更正的过程被称作调试。Visual Basic 提供一些帮助分析应用程序运行的 阅读全文

posted @ 2013-06-19 17:15 圣光 阅读(2405) 评论(0) 推荐(0)

apktool回编译错的解决方法【转】
摘要:今天在修改cm9电池图标的时候,碰到一个问题,在用apktool对apk回编译的时候,出现类似以下错误(错误代码借用的网上的)。 C:\Users\Connor\Desktop\New folder>apktool b Browser -dI: Checking whether sources has changed...I: Checking whether resources has changed...I: Building resources...invalid resource directory name: C:\Users\Connor\Desktop\... 阅读全文

posted @ 2013-06-12 11:43 圣光 阅读(4063) 评论(0) 推荐(1)

导航