2013年2月22日
摘要: 1、设置Session有效时间session.setMaxInactiveInterval(30*60*1);//单位时间是秒 ,设置了30分钟session的有效时间2、得到服务器IP<%@page import="java.util.*,java.net.*" %>String localIP=InetAddress.getLocalHost().getHostAddress(); 阅读全文
posted @ 2013-02-22 11:24 天 火 阅读(229) 评论(0) 推荐(0) 编辑
  2012年11月30日
摘要: procedure Tloginform.FormCreate(Sender: TObject);var errno:integer; hmutex:hwnd;begin hmutex:=createmutex(nil,false,pchar(application.Title)); errno:=getlasterror; if errno=error_already_exists then begin application.MessageBox(' 您已经打开了该软件'+#13#13+' 请 不要再尝试'+#13#13+'您只能运行一... 阅读全文
posted @ 2012-11-30 15:56 天 火 阅读(245) 评论(0) 推荐(0) 编辑
  2012年9月29日
摘要: 1、关于SVN和MyEclipse集成时,提交出错org.tigris.subversion.javahl.ClientException Authorization failed的解决方法: 删除临时记录文件夹C:\Documents and Settings\Administrator\Application Data\Subversion Subversion文件夹,重新输入用户名及密码即可。 阅读全文
posted @ 2012-09-29 15:48 天 火 阅读(364) 评论(0) 推荐(0) 编辑
  2012年7月2日
摘要: WebBrowser控件属性:1、Application如果该对象有效,则返回掌管WebBrowser控件的应用程序实现的自动化对象(IDispatch)。如果在宿主对象中自动化对象无效,程序将返回WebBrowser控件的自动化对象2、Parent 返回WebBrowser控件的父自动化对象,通常是一个容器,例如是宿主或IE窗口3、Containe 返回WebBrowser控件容器的自动化对象。通常该值与Parent属性返回的值相同4、Document 为活动的文档返回自动化对象。如果HTML当前正被显示在WebBrowser中,则Document属性提供对DHTML Object Mode 阅读全文
posted @ 2012-07-02 09:33 天 火 阅读(9799) 评论(0) 推荐(1) 编辑
  2012年6月27日
摘要: 方法一: 使用LocalConnection对象,据说不受AS版本限制。 1、Flash端,在需要通信的位置插入代码: var localConn:LocalConnection=new LocalConnection(); //lc_from_flash:是建立连接的字符串,该字符串必须与Flex中connect()方法中所需参数一致。 //ShowDetails:为Flex提供的Public方法。 //5:ShowDetails方法的数值参数 localConn .send("lc_from_flash","ShowDeta... 阅读全文
posted @ 2012-06-27 12:35 天 火 阅读(580) 评论(0) 推荐(0) 编辑
  2012年6月25日
摘要: 一、系统1、打开其它程序、文件: uses ShellAPI; ShellExecute(Application.Handle, nil, PChar(FilePath), nil, nil, SW_SHOWNORMAL);2、浏览某文件或文件夹目录: uses ShellAPI; ShellExecute(Application.Handle, nil, PChar('explorer.exe'),PChar('/e, '+ '/select,' + FilePath), nil, SW_NORMAL);二、其它1、限制只能输入数字proced 阅读全文
posted @ 2012-06-25 14:14 天 火 阅读(345) 评论(0) 推荐(0) 编辑
  2012年6月15日
摘要: 一、完整代码<?xml version="1.0" encoding="utf-8"?><s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:esri="http://www.esri.com/2008/ags" min 阅读全文
posted @ 2012-06-15 14:38 天 火 阅读(7279) 评论(0) 推荐(0) 编辑
  2012年6月13日
摘要: 1、示例源码:<?xml version="1.0" encoding="utf-8"?><s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:esri="http://www.esri.com/2008/ags" mi 阅读全文
posted @ 2012-06-13 15:37 天 火 阅读(1570) 评论(0) 推荐(0) 编辑
  2012年6月4日
摘要: { 文本文件是以行为单位进行读、写的的。由于每一行的长度不一定相同,不能计算出给定行在文件中的确切位置,因而只能顺序地读写。 文本文件只能单独为读或写而打开,在一个打开的文本文件上同时进行读、写操作是不允许的。}var F:Text; //与TextFile相同 FileName:String='Test.Txt';//省略路径,默认当前procedure CreateTxtFile;begin //文件变量与文件关连 AssignFile(F,FileName); //初始化读写,文件不存在时用Reset,Append会引用IO异常 Rese... 阅读全文
posted @ 2012-06-04 10:06 天 火 阅读(364) 评论(0) 推荐(0) 编辑
  2012年6月2日
摘要: unit UMain;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs,XMLDoc, XMLIntf, xmldom,msxmldom, StdCtrls;type TForm1 = class(TForm) Button1: TButton; Button2: TButton; Button3: TButton; Memo1: TMemo; Button4: TButton; Button5: TButto... 阅读全文
posted @ 2012-06-02 10:12 天 火 阅读(421) 评论(0) 推荐(0) 编辑