随笔分类 -  编程开发集合

摘要:1 //序列化 2 private void btnShow_Click(object sender, EventArgs e) 3 { 4 DataTable dt = new DataTable(); 5 DataC... 阅读全文
posted @ 2014-12-05 15:46 太一吾鱼水 阅读(227) 评论(0) 推荐(0)
摘要:一直不确定C#可以通过存储过程进行查询,今天才确定是可以的。可以返回DataReader或者Dataset。 阅读全文
posted @ 2014-11-14 09:46 太一吾鱼水 阅读(556) 评论(0) 推荐(0)
摘要:1)C++ Threadshttp://sourceforge.net/projects/threads/2)ZThreadhttp://sourceforge.net/projects/zthread/(C++编程思想下卷介绍并发时候用的线程库)3)Open Threadshttp://sourc... 阅读全文
posted @ 2014-09-27 08:54 太一吾鱼水 阅读(144) 评论(0) 推荐(0)
摘要:MDI(MultipleDocument Interface)是Windows界面的一种规范,它建立多个窗口来浏览文档数据,如Windows中的ProgramManager等都是按MDI规范实现的。在实际工程软件开发中,许多程序员将其作为一种实现多窗口的标准方法。微软基础类库(Microsoft... 阅读全文
posted @ 2014-09-24 19:59 太一吾鱼水 阅读(568) 评论(0) 推荐(0)
摘要:VS2010,新建MFC项目,在头文件stdafx.h中添加:1 #include 2 using namespace Gdiplus;3 #pragma comment (lib,"Gdiplus.lib")定义类的变量 ULONG_PTR gdiplusToken;在BOOL CGDALDes... 阅读全文
posted @ 2014-07-27 18:23 太一吾鱼水 阅读(2708) 评论(0) 推荐(0)
摘要:C# char 关键字用于声明 .NET framework 使用 Unicode 字符表示 System.Char 结构的实例。 Char 对象的值是 16 位数字 (序号值。)将字符表示为 UTF-16 代码单位。 Unicode 字符在世界上表示大多数书面语言。 类型 范围 大小 .NET F 阅读全文
posted @ 2014-07-21 20:45 太一吾鱼水 阅读(2129) 评论(0) 推荐(0)
摘要:以下例子中,存储了整数123的记亿体空间不能被删除,因为地址丢失了。这些空间已无法再使用。 1 #include 2 using namespace std; 3 int main() 4 { 5 int *a = new int(123); 6 cout 2 #include... 阅读全文
posted @ 2014-07-20 14:03 太一吾鱼水 阅读(710) 评论(0) 推荐(0)
摘要:在StartUp项目中,SharpDevelopMain类的Main函数。 阅读全文
posted @ 2014-07-16 21:58 太一吾鱼水 阅读(244) 评论(2) 推荐(0)
摘要:方式一在Idle方法中更新 1 void OnApplicationIdle(object sender, EventArgs e) 2 { 3 // Use the Idle event to update the status of menu and to... 阅读全文
posted @ 2014-07-16 21:49 太一吾鱼水 阅读(413) 评论(0) 推荐(0)
摘要:服务器端:1.新建一个Asp.net空网站RGImageServer。2.新建一个WebService项目ImageService,项目新增文件ImageService.asmx,添加方法GetTile()。 1 using System; 2 using System.Collections.Ge... 阅读全文
posted @ 2014-07-02 19:44 太一吾鱼水 阅读(563) 评论(0) 推荐(0)
摘要:QtCreator新建一个Qt Application,命名为ImageView在项目文件夹下添加gdal库,统一放在ImageView\gdal目录下。右键单击项目,选择添加库命令,添加gdal_i.lib和头文件路径,完成后可以再ImageView.pro文件中查看:win32: LIBS +=... 阅读全文
posted @ 2014-06-24 19:58 太一吾鱼水 阅读(788) 评论(0) 推荐(1)
摘要:控制器 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 namespace RGeos.FrameWork.MVC 7 { 8 //控制类 9... 阅读全文
posted @ 2014-04-20 10:25 太一吾鱼水 阅读(216) 评论(0) 推荐(0)
摘要:Getting started with MVC# frameworkThe source code of this example can be found under "Examples\Basics\" subfolder of the MVC# framework root folder. ... 阅读全文
posted @ 2014-04-19 21:27 太一吾鱼水 阅读(501) 评论(0) 推荐(0)
摘要:MVC# Overview概述Abstract: This article gives an overview of MVC# - a Model-View-Presenter framework for .NET platform. It firstly explains the MVP patt... 阅读全文
posted @ 2014-04-19 21:25 太一吾鱼水 阅读(592) 评论(0) 推荐(0)
摘要:1.首先定义一个处理数据需要产生进度的接口和抽象类 1 namespace Progress.Core 2 { 3 public interface IProgress 4 { 5 IProgressView m_FrmProgress { get; set; } 6 PosscessCompleted mPosscessCompleted { get; set; } 7 Thread mThread { get; } 8 bool IsStop { get; set; } 9 void Start... 阅读全文
posted @ 2014-04-12 13:16 太一吾鱼水 阅读(408) 评论(0) 推荐(0)
摘要:MVCSharp其实是MVP模式主要内容ITask IView IController 阅读全文
posted @ 2014-03-25 18:24 太一吾鱼水 阅读(178) 评论(0) 推荐(0)
摘要:1. 一个异常情景加载15000条等高线,平均每条线有400个点到三维球上,等待时间太长。而且可能会报内存异常。2. 不错的分析http://wenku.baidu.com/view/1447140ce87101f69e31950b.html典型出现内存溢出的情况:double[,] m = new double[16000, 16000];代码编写方面的注意问题 1.System.Drawing方面的类使用问题 System.Drawing用到了很多系统的资源和非托管代码,所以使用的时候要特别小心,注意内存泄漏(Memory Leak)例如:BitMap.MakeTransparent方.. 阅读全文
posted @ 2014-03-14 12:04 太一吾鱼水 阅读(583) 评论(0) 推荐(0)
摘要:度分秒的正则表达式:^[EW]?((\d|[1-9]\d|1[0-7]\d)[s\-,;°度](\d|[0-5]\d)[s\-,;′'分](\d|[0-5]\d)(\.\d{1,2})?[s\-,;/""秒]?$)匹配字符:18°12'23.34"1°12'23.34"168°12'23.34"18°01'09.34"经度:^[EW]?((\d|[1-9]\d|1[0-7]\d)[s\-,;°度](\d|[0-5]\d)[s\-,;′'’分](\d|[0-5]\d)(\.\d{1,2})?[s\-,;/""”秒]? 阅读全文
posted @ 2014-03-07 22:39 太一吾鱼水 阅读(3108) 评论(4) 推荐(1)
摘要:今天晕晕糊糊的看CSLA.net,希望能找到验证数据正确性的方法,还是摸索出了INotifyPropertyChanged, IDataErrorInfo接口的使用方法,通过INotifyPropertyChanged实现了响应属性改变的事件,通过 IDataErrorInfo接口实现了在DataGridView或者GridControl中显示验证信息。先看一个数据实体的抽象类: 1 public abstract class BaseModel : INotifyPropertyChanged, INotifyPropertyChanging, IDataErrorInfo 2 {... 阅读全文
posted @ 2014-03-06 22:25 太一吾鱼水 阅读(381) 评论(0) 推荐(0)