上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 32 下一页
摘要: 参考了网络上中资料,自己学习实践了一个Java6 WebService.首先,建立一个WebService:packagegarfield;importjavax.jws.WebService;importjavax.xml.ws.Endpoint;@WebServicepublicclassMyJ6WebService{publicStringSayHello(StringstrName){return"Hello,"+strName+"!";}publicstaticvoidmain(String[]args){//发布WebService,注意如果 阅读全文
posted @ 2012-09-14 09:35 garfieldtom 阅读(2253) 评论(1) 推荐(1)
摘要: 1.首先,要导入对象库定义: 打开Delphi,Project菜单->Import Type Library...,在列表框中找到"Microsoft SQLDMO Object Library”,然后生成一个Unit单元文件,默认为SQLDMO_TLB,然后在备份窗体中加入引用:SQLDMO_TLB,还有ComObj。 2.在窗体中加入一个进度条,将总进度设置为100(或在代码中设置)。 3.定义接口: typeTBackupSink=class(TInterfacedobject,backupsink)//实现接口functionPercentComplete(constM 阅读全文
posted @ 2012-09-06 09:08 garfieldtom 阅读(2228) 评论(0) 推荐(0)
摘要: 开发时需要在模拟器上模拟GPS,可在Location的时候总是null,上网查了一下,发现如下解决:网上大侠的解决方案:在模拟器上获取GPS信息时,使用Location loc = LocationManager.getLastKnownLocation("gps");来获取location信息,但是往往在调试中loc是null的,因为首先需要在模拟器中手动添加GPS信息,有两种手动添加方法1、在eclipse下,windows-->open perspective-->DDMS-->Emulator control-->Manual下手动设置经纬度 阅读全文
posted @ 2012-09-01 21:47 garfieldtom 阅读(17456) 评论(0) 推荐(2)
摘要: 之前自己修改过一个,又找到一个,觉得这个要比我修改的好,之前修改的好像有点问题 :-(unit NewDES;interfaceusesSysUtils,Classes;typeTByte32 = array[1..32] of Byte;TSData = array[0..63] of Byte;TBlock = array[0..7] of Byte;function EnCryptStr(aStr: AnsiString; aKey: AnsiString ): AnsiString;function DeCryptStr(aStr: AnsiString; aKey: AnsiStri 阅读全文
posted @ 2012-08-30 18:42 garfieldtom 阅读(5730) 评论(0) 推荐(0)
摘要: (**************************************************************)(*AdvancedEncryptionStandard(AES)*)(*InterfaceUnitv1.3*)(**)(*Copyright(c)2002JorlenYoung*)(**)(*说明:*)(*基于ElASE.pas单元封装*)(**)(*这是一个AES加密算法的标准接口。*)(*调用示例:*)(*ifnotEncryptStream(src,key,TStream(Dest),keybit)then*)(*showmessage('encryp 阅读全文
posted @ 2012-08-30 18:35 garfieldtom 阅读(9201) 评论(0) 推荐(0)
摘要: 要做一个自动短信回复,所以需要拦截系统短信.1.在Manifest.xml里加"接收"SMS的权限 <uses-permission android:name="android.permission.RECEIVE_SMS"></uses-permission>2.在Manifest.xml里注册一个receive<!-- 注册Receiver,并且设置优先级 --> <receiver android:name=".AutoSMS" android:exported="false& 阅读全文
posted @ 2012-08-25 06:05 garfieldtom 阅读(28138) 评论(9) 推荐(1)
摘要: 转自:http://www.cnblogs.com/sandman/archive/2010/12/05/1897063.html自己的开发机器称为主机,运行程序的机器称为目标机;一、在主机编译执行程序1、project->options->linker中的EXE and DLL options选项组中的include remote debug symbols打上勾这样就可以生成rsm为扩展名的文件,该文件名称于你的项目同名。2、project->options->Debugging中的勾可以全部选上,这是在你的程序支持debug(正式发布产品时要去掉这些选项,Delp 阅读全文
posted @ 2012-08-08 14:27 garfieldtom 阅读(4198) 评论(0) 推荐(0)
摘要: 直接上代码吧:1functionGetSQLByTableName(sTableName:string):String;2var3aDataSet:TDataSet;4s:String;5aField:TField;6aFieldList,aFieldDescriptionList:TList<string>;7functionGetFieldDescription(sTable,sField:string):String;8var9sSQL:String;10begin11sSQL:='select sys.extended_properties.value from s 阅读全文
posted @ 2012-08-01 10:54 garfieldtom 阅读(1555) 评论(0) 推荐(0)
摘要: cxGrid失去焦点后如何继续保持选中单元的高亮状态,找了好久才找到一个答案:SolutionThere is no need to adjust those options. The solution is very simple: You should define a new style (an Item of the Style Controller) which defines the necessary colors for highlighting and use it both for the View's Styles.Inactive and Styles.Sele 阅读全文
posted @ 2012-07-31 20:31 garfieldtom 阅读(1837) 评论(0) 推荐(0)
摘要: 安装my tracks到a750,发现无法安装mytracks,试着安装到onda平板,也无法安装,然后试了多个ROM都不行,才发现是android 4.0 google地图的使用问题。将<uses-library android:name="com.google.android.maps" android:required="false"/>加入到manifest的application中,可以安装,但仍不能使用。百度地图可以使用,奇怪的是机器上的google地图可以正常运行。上网搜索,说要上传com.google.android.maps 阅读全文
posted @ 2012-07-17 14:52 garfieldtom 阅读(475) 评论(2) 推荐(0)
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 32 下一页