#include#include#pragma comment(lib,"WS2_32.lib")int main(){ WSADATA data; WSAStartup(2,&data); hostent* host = gethostbyname(""); char *IP = inet_nt....
分类:
其他好文 时间:
2014-06-28 12:28:59
阅读次数:
194
static class SubFormExtensions{ internal static bool AttachTo(this Form subForm, Panel panel) { if (panel == null || subForm == null) ret...
分类:
其他好文 时间:
2014-06-28 12:24:57
阅读次数:
174
1.类的定义: 在Ext项目开发中,有时会用到只选择年月的日期组件,下面的代码会帮你完成,只需向下面的类拷贝到你的项目中即可使用。Ext.define('Ext.form.field.Month', { extend:'Ext.form.field.Date', alias: 'wid...
分类:
其他好文 时间:
2014-06-28 12:00:41
阅读次数:
164
public static void main(String args[]){ //生成一个JSONObject对象 String data = "{}"; JSONObject jsonObj = JSONObject.fromObject(data); //1.put 基本类型值 i...
分类:
编程语言 时间:
2014-06-28 11:58:31
阅读次数:
202
原文出处:http://csjava.blog.163.com/blog/static/19047003320119110358572/db2中SELECT TOP N * FORM TABLENAME 是不能取到表中前几条记录的。要使用SELECT * FROM TABLENAME FETCH F...
分类:
数据库 时间:
2014-06-28 11:47:36
阅读次数:
348
/var/lib/pgsql/data/pg_hba.confCentOS 6.3下PostgreSQL 的安装与配置http://www.cnblogs.com/mchina/archive/2012/06/06/2539003.htmlpostgresAdmin3http://www.cnblo...
分类:
数据库 时间:
2014-06-28 11:20:25
阅读次数:
375
使用 require("MyAapp.DepTree", function (DepTree) { DepTree(({ renderTo: "holder", width: "820", height: "580", data: [ { "name": "System" }, { "nam...
分类:
Web程序 时间:
2014-06-28 10:47:03
阅读次数:
320
开发中常常遇到这样的问题:需要将服务器端的文件下载到客户端。这种情况分为两种,一种是windows环境,一种是web环境。前两天在winform开发中就遇到过这样一个问题,上网搜索后没有发现现成的demo,所以自己花费了一点时间,做了一个简单的文件保存的demo,分享如下:首先需要写一个下载的方法....
关于easyUI Datagrid 控件 param参数,官方文本很少解释,主要有如下说明:queryParamsobjectWhen request remote data, sending additional parameters also.Code example:$('#dg').data...
分类:
其他好文 时间:
2014-06-24 10:35:11
阅读次数:
268
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data;using System.Reflection;namespace RftToModel { ...
分类:
其他好文 时间:
2014-06-24 10:11:11
阅读次数:
151