摘要: 源代码下载:http://files.cnblogs.com/nickong/SLWCFOraSample.rarIntroductionThis is a very simple sample about how to access Oracle Database in Silverlight . I used to google the internet and search the Code... 阅读全文
posted @ 2010-05-18 09:47 RayG 阅读(1975) 评论(0) 推荐(0) 编辑
摘要: Keywords: GDI+ , VC++ , CString , WCHAR , FontFamily , ConvertAs we all know,in GID plus, when we want to create a new font , we should do something like this : FontFamily fontFamily(L"隶书"); Font f... 阅读全文
posted @ 2009-07-10 17:21 RayG 阅读(472) 评论(0) 推荐(0) 编辑
摘要: (1) 如何通过代码获得应用程序主窗口的 指针?主窗口的 指针保存在CWinThread::m_pMainWnd中,调用AfxGetMainWnd实现。AfxGetMainWnd() ->ShowWindow(SW_SHOWMAXMIZED)//使程序最大化.(2) 确定应用程序的路径Use GetModuleFileName 获得应用程序的路径,然后去掉可执行文件名。Example:TCH... 阅读全文
posted @ 2009-06-08 10:23 RayG 阅读(1031) 评论(0) 推荐(0) 编辑
摘要: The Default Coordinate SystemWhen drawing on MicrosoftWindows, the coordinates of the drawing area are located on the upper-left corner of the screen. Everything positioned on the screen takes it... 阅读全文
posted @ 2009-06-04 11:02 RayG 阅读(330) 评论(0) 推荐(0) 编辑
摘要: When i played DOTA game in VS platform  , too many cheater use hack program , this makes me really upset. So i decide to make a program to stop this, i suggest the poeple worked in VS platfo... 阅读全文
posted @ 2009-05-07 17:28 RayG 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 该函数包含三个点的位置参数,点A(x1,y1)    点B(x2,y2)  点C(x3,y3)  从A点到B点连线成边L1,从C点到B点连线成边L2。 公式CountAngle返回的结果就是从L1顺时针转到L2的夹角度数,以DOUBLE类型返回。 double CMapRender::CountAngle(double x1, double y1,... 阅读全文
posted @ 2009-04-15 13:05 RayG 阅读(257) 评论(0) 推荐(0) 编辑
摘要: If you have problem about using BindLayer in MapX with C#, check this out. it may help.  My Enviroment:Microsoft Visual Studio.NET 2005 (C#)  + Mapinfo MapX 5.02Keywords: BindLayer ,DataSet,... 阅读全文
posted @ 2008-11-01 15:44 RayG 阅读(597) 评论(0) 推荐(0) 编辑
摘要: 计算几何常用算法介绍 1. 矢量减法设二维矢量 P = (x1,y1) ,Q = (x2,y2)则矢量减法定义为: P - Q = ( x1 - x2 , y1 - y2 )显然有性质 P - Q = - ( Q - P )如不加说明,下面所有的点都看作矢量,两点的减法就是矢量相减;2.矢量叉积设矢量P = (x1,y1) ,Q = (x2,y2)则矢量叉积定义为: P × Q = x1... 阅读全文
posted @ 2008-07-16 13:54 RayG 阅读(398) 评论(0) 推荐(0) 编辑
摘要: 安装ArcSDE的时候碰到不少问题。After installation , the system log says: Error (-327), No ArcSDE server license foundactually, ArcGIS License Manager has been installed in our system already succssfully. no proble... 阅读全文
posted @ 2008-03-18 10:31 RayG 阅读(656) 评论(0) 推荐(0) 编辑
摘要: 一、ARC/INFO与AutoCAD、MicroStation、MapInfo 之间的数据格式转换 有一个非常好的工具,FME,本人使用的是FME Suit 2002 版本。可以进行大量的各种GIS数据格式的转换。可以先使用FME准备好FME的Workbench文件,然后在程序中通过命令行的方式进行调用。例如:Dim str As String str = "FME D:\Data\test_sh... 阅读全文
posted @ 2007-12-10 11:16 RayG 阅读(416) 评论(0) 推荐(0) 编辑
摘要: converts a coverage feature class (region) into a new shapefile with the proper feature type. The "canada" coverage from the data folder of the developer's samples is converted.SubCovertoShape()'useIF... 阅读全文
posted @ 2007-12-10 11:05 RayG 阅读(405) 评论(0) 推荐(0) 编辑
摘要: ArcGIS中为Shapefile属性表增加字段属性描述了要素的相关特性,并存储于表中。在创建新的属性表或是向已有的属性表中增加字段的时候,必须指明数据类型和字段属性,比如精度(Precision)或长度(Length)。数据类型的选择和相关设置会影响存储和显示,并且对后台数据库的精度和效率有十分重要的意义。在ArcGIS中你可以将要素的属性值存储为七种数据类型之一,即短整型(short inte... 阅读全文
posted @ 2007-12-10 10:49 RayG 阅读(1415) 评论(0) 推荐(0) 编辑
摘要: 子非鱼,安知鱼之乐?庄子庄子与惠子游于濠梁之上。庄子曰:“儵鱼出游从容,是鱼之乐也?”惠子曰:“子非鱼,安知鱼之乐?”庄子曰:“子非我,安知我不知鱼之乐?”惠子曰:“我非子,固不知子矣;子固非鱼也,子之不知鱼之乐,全矣。”庄子曰:“请循其本。子曰‘汝安知鱼乐’云者,既... 阅读全文
posted @ 2007-12-07 16:20 RayG 阅读(410) 评论(0) 推荐(0) 编辑
摘要: 1. In Carbide C++ IDE, right click on the project in the project window, select menu "New" "C++ Class", window of create a new class prompt.Click Finish button to create the new class.Then add code ... 阅读全文
posted @ 2007-09-18 17:52 RayG 阅读(300) 评论(0) 推荐(0) 编辑
摘要: This is a game I created when i start to learn XNA development in Jun-2007.  I got the interview call from Microsoft(China) Company while i am trying to apply the position of XNA game developer. ... 阅读全文
posted @ 2007-09-18 10:27 RayG 阅读(320) 评论(0) 推荐(0) 编辑
摘要: there are 2 ways to open a path browse dialog in VB/VBA. and there is a little diffenent between VB and VBA.check this out ~ Way No.1 : Legacy VB 1. Add a new module in you VB project . 2. Copy & ... 阅读全文
posted @ 2007-08-16 16:50 RayG 阅读(722) 评论(0) 推荐(0) 编辑
摘要: (-)引子这两天从同事许可那里弄了个GPS卫星定位接收器,是蓝牙的,刚好我的N70也支持蓝牙,而且两者可以连接。 搞了这么久的GIS了,看能不能学以致用吧,准备花些时间做个N70手机程序,蓝牙连接GPS,实现手机的跟踪定位。有个介绍Symbian平台和Nokia手机的文章:http://www.soccer8.cn/blog/post/304.html 当然,我只关注开发!对价格性能都没兴趣!下面... 阅读全文
posted @ 2007-08-07 11:34 RayG 阅读(809) 评论(0) 推荐(0) 编辑
摘要: #include"Bintree.h"/****************************************************//*树的结点个数*//****************************************************/intnum_of_node(Bintreet){if(t==NULL)return0;elsereturnnum_of_no... 阅读全文
posted @ 2007-08-07 11:15 RayG 阅读(331) 评论(0) 推荐(0) 编辑
摘要: //Bintree.h#include<stdio.h>#include<malloc.h>typedefstructBinnode{//二叉树结点结构体chardata;structBinnode*lchild;structBinnode*rchild;};typedefBinnode*Bintree;typedefstructstack{//二叉树结点栈Bintreed... 阅读全文
posted @ 2007-08-07 11:14 RayG 阅读(350) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<stdlib.h>#include<limits.h>#defineMaxStr20typedefintStatus;typedefintElemType;typedefstruct{ElemTypeVNode;intindgree;}VexType;typedefstructArc{VexTypeAdj;un... 阅读全文
posted @ 2007-08-07 11:12 RayG 阅读(416) 评论(0) 推荐(0) 编辑
摘要: Linked List C implement (2)#include"Head_Node.h"/************************************//*判断链表是否有序*//************************************/intIs_Sort(node*head){node*p,*pre;intflag;pre=head->next;p=pr... 阅读全文
posted @ 2007-08-07 11:07 RayG 阅读(377) 评论(2) 推荐(0) 编辑
摘要: Linked List C implement(1)////////////////////////////////////////////////////////////////////////////////////////////////////#include<stdio.h>#include<malloc.h>typedefstructList_Node{inti... 阅读全文
posted @ 2007-08-07 11:05 RayG 阅读(332) 评论(0) 推荐(0) 编辑
摘要: Private Sub CommandButton5_Click()    'Merge Blank Cell    Dim i, j, iRowscount, iMgStart, iMgEnd As Inte... 阅读全文
posted @ 2007-08-07 11:00 RayG 阅读(443) 评论(0) 推荐(0) 编辑
摘要: Private Sub LoadDataTypeField()    'Set DB connection to MGISDBSRV    Dim DBcfg As DBconfig    ... 阅读全文
posted @ 2007-08-07 10:59 RayG 阅读(332) 评论(0) 推荐(0) 编辑
摘要: Key Words: ArcGIS,ArcObject, VBA,Access,Cycle through all Polygons///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////PrivateTypeGRLa... 阅读全文
posted @ 2007-08-07 10:58 RayG 阅读(409) 评论(2) 推荐(0) 编辑