自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(37)
  • 资源 (2)
  • 收藏
  • 关注

原创 cadorecordset

<br /> 以前就遇到过 cadorecordset 打开时 提示 对象关闭的错误提示。<br /> 后来经过研究发现,是因为执行 了存储过程,并且返回临时表 而导致。<br /> 比如有一个存储过程 a<br /> create procedure a<br />   @id int<br /> as <br /> begin <br />    select * into #tmp from t where id=@id<br />    ........<br />    select * from

2010-07-20 15:27:00 1720

原创 CMApx 5 内置的紧缩表函数

<br />前一段时间,由于需要对mapx 表 进行紧缩,所以查找办法,大都是通过临时图层过渡。但是网上的vc 代码似乎有一个bug ,会造成相关的图层文件无法重新创建。<br /> <br />于是通过网络搜索发现了另外一个方法:经过测试,代码无误。(非常感谢提供代码的朋友,不知是如何获得的代码?)<br /> <br /> <br />mapx5.0已经实现了紧缩表的功能,但用vc开发的时候,却找不到那个pack函数。因此,按照下面的方法做,就可实现该功能。<br /> <br />1、找到mapx.h

2010-06-18 07:10:00 1137

原创 visual studio 2005 sp1 8.0.50727.4053 对应的vc++ redistributable 包

visual studio sp1 8.0.50727.4053 对应的vc++ redistributable 包在 /Program Files/Microsoft Visual Studio 8/SDK/v2.0/BootStrapper/Packages/vcredist_x86可恶的microsoft!

2010-06-16 20:39:00 3337

原创 准备开始

需要准备些什么呢?  书  本子  还有心情

2010-04-20 23:04:00 407

原创 Test

test

2009-09-23 07:44:00 266

原创 如何使用live write csdn blog - Google 搜索

  如何使用live write csdn blog - Google 搜索

2009-09-19 17:24:00 388

转载 TCP/IP通信程序设计的丰富多样性

转自 http://www.chinaunix.net 作者:blogliou  发表于:2003-05-29 12:02:45刚接触TCP/IP通信设计的人根据范例可以很快编出一个通信程序,据此一些人可能会认为TCP/IP编程很简单。其实不然,TCP/IP编程具有较为丰富的内容。其编程的丰富性主要体现在通信方式和报文格式的多样性上。一。通信方式主要有以

2009-06-05 11:22:00 368

转载 TCP连接探测中心跳包(摘录)

1 作者: iloveican        采用TCP连接的C/S模式软件,连接的双方在连接空闲状态时,如果任意一方意外崩溃、当机、网线断开或路由器故障,另一方无法得知TCP连接已经失效,除非继续在此连接上发送数据导致错误返回。很多时候,这不是我们需要的。我们希望服务器端和客户端都能及时有效地检测到连接失效,然后优雅地完成一些清理工作并把错误报告给用户。      如何及

2009-05-31 10:39:00 1307

原创 MapX的绘图刷新导致客户区cdc绘图丢失的问题。

      最近程序中遇到在使用mapx绘图的同时,还必须在客户区窗口中使用cdc 直接绘图。      但是这出现了问题,就是当mapx 刷新时(比如窗口移动,最大化,遮盖),同时会将cdc 设备的绘图刷掉。      原来一直以为可以在cview::ondraw 中重绘,但是怎么也不行。后来想到可能mapx的绘制是否在ondraw之后发生的。那么也就是说必须等到mapx的绘图之后才可以使用cd

2008-05-22 16:10:00 2188 2

原创 Mapx 创建新符号图元另外一种方法

            //创建新的图元另外一种方法,当采用mapx 的tab 表作为数据源时。            CMapXFeature newFtr;            newFtr.CreateDispatch(newFtr.GetClsid());             newFtr.Attach(m_pCtrlMapx->GetDispatch());          

2008-01-09 10:12:00 1141

转载 mapx 删除所有图元

void CAMHiliteLayer::RemoveAll(){    BeginAccess(miAccessReadWrite);    CMapXFeatures fs = AllFeatures();    for (long nItem=1; nItem        DeleteFeature(fs.Item(nItem).GetFeatureKey());    EndAccess

2007-12-22 15:38:00 1601

原创 Mapx 属性数据文件用oledb方式访问的问题

mapx(mapinfo )的属性数据文件 .dat 文件,其结构是dbase 格式。希望在程序中使用oledb方式进行直接访问,想不到不行。提示ole/db   provider   returned   message:   microsoft   jet   数据库引擎找不到对象但是如果把其扩展名改为.dbf ,就可以了。 这是怎么回事?下面这两个帖子给出答案:http://www.rent

2007-12-22 09:39:00 1066 2

转载 odbc ado dao rdo 的相关评论

简单地说一下:     ODBC执行效率最高,可与C类比     ADO对ODBC进行了封装,效率稍低些,但功能/代码比最高,一般都用这个东西,可与C++类比     DAO   ……   好象是一种比较落后的技术了,反正我是没用过。 ODBC是Microsoft的基于关系数据库一种互连技术,它只能访问关系数据库,如果使用SQLAPI进行编程,效率较好,但代码较多,如果使用MFC   ODB

2007-12-05 12:46:00 1150

转载 MapX MapInfo truetype 字体编号对照。

1 Map Symbols每隔5个一个。 2  MapInfo Arrows3 MapInfo Cartographic4 MapInfo Miscellaneous5 MapInfo Oil&Gas6MapInfo Real Estate7 MapInfo Shields8 MapInfo Symbols9 MapInfo Transportation10 MapInfo Weather

2007-10-30 21:21:00 2522

转载 MapX SetKeyField及GetKeyValue使用举例。

 /**//*MapInfo Products Knowledge BaseProduct: MapXVersion: 5.xPlatform: Not Platform RelatedCategory: VC++ Code SamplesSummary:Extract data from a layer using the keyvalue/keyfield properties.Que

2007-10-29 22:34:00 7638

转载 MapX 创建位图样式符号。

/**//*MapInfo Products Knowledge BaseProduct: MapXVersion: 5.xPlatform: 98/NT 4.0 SP6/2000/XPCategory: VC++ Code SamplesSummary:Using Custom Bitmap Symbols in C++.Question:What are the methods perta

2007-10-29 22:17:00 1728

转载 MapX 设置投影。

/**//*MapInfo Products Knowledge BaseProduct: MapXVersion: 4.xPlatform: Windows 9598 & Windows NTCategory: VC++ Code SamplesSummary:Setting a projection through code in VC++ with MapX.Question:Is 

2007-10-29 22:02:00 1086

转载 MapX 创建新的永久图层。

/*MapInfo Products Knowledge BaseProduct: MapXVersion: 4.5Platform: Win9xNT€0Category: VC++ Code SamplesSummary:Creating a new table in Visual C++.Question:Is there a C++ code example for how to cre

2007-10-29 21:53:00 2405 1

转载 mapx 拦截键盘输入

/**//*MapInfo Products Knowledge BaseProduct: MapXVersion: 4.xPlatform: Windows 9598 & Windows NTCategory: VC++ Code SamplesSummary:Catching key strokes before they are sent to MapX in C++?Question:

2007-10-29 21:45:00 1468 2

转载 mapx 复制图层并粘贴到新建图层中.

 /**//*MapInfo Products Knowledge BaseProduct: MapXVersion: 5.xPlatform: Win9xNT€0Category: VC++ Code SamplesSummary:Copying features and data to a new layer in VC++.Question:The following code co

2007-10-29 21:05:00 2656

原创 c# 代码整理集 3

7 简单数据绑定using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;namespace Bindings...{    publ

2007-10-28 14:19:00 712

原创 c# 代码整理集2

4 拖放using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;namespace DrapDrop1...{    public 

2007-10-28 13:48:00 985

原创 c# 代码整理集1

1 测量字体宽度        private void button1_Click(object sender, EventArgs e)        ...{            Graphics g = this.CreateGraphics();            string txt1, txt2;            float f1, f2;            

2007-10-28 13:30:00 725

转载 mapx 使用layerinfo 添加shape 文件层.(VB)

/**//*MapInfo Products Knowledge BaseProduct: MapXVersion: 4.5.1Platform: Windows NT/2000Category: Code SamplesSummary:Opening Shape files through MapX?Question:Below is a code sample showing how to

2007-10-27 16:45:00 1204

转载 mapx 显示新建图元的属性

/**//*MapInfo Products Knowledge BaseProduct: MapXVersion: 3.x/4.xPlatform: All Win32 PlatformsCategory: C++Summary:Returning properties of a feature after it is attached to a Map.Question:MapX vers

2007-10-27 16:39:00 3683

转载 mapx 创建使用位图样式的符号例程。

/**//*MapInfo Products Knowledge BaseProduct: MapXVersion: 3.xPlatform: All Win32 PlatformsCategory: C++Summary:C++ sample code showing how to create a point and use the BitmapSymbols collection.Que

2007-10-27 16:31:00 1407

转载 mapx toolused 事件代码例子

/**//*MapInfo Products Knowledge BaseProduct: MapXVersion: 2.0Platform: Window 95/Windows NTCategory: C++Summary:A ToolUsed handler for C++ that changes the style of a feature.Question:A ToolUsed ha

2007-10-27 16:24:00 1255

转载 mapx 添加新的永久图层

 MapXLayerInfo LayerInfo ;CMapXFields MapFields ;        try...{        LayerInfo.CreateDispatch( LayerInfo.GetClsid() ) ;        MapFields.CreateDispatch( MapFields.GetClsid() );        MapFields

2007-10-27 14:38:00 1664

转载 mapx 创建使用truetype字体的符号样式。

    //创建点样式    try    {...        pointStyle.CreateDispatch(pointStyle.GetClsid());        pointStyle.SetSymbolType(miSymbolTypeTrueTypeFont);//Mapx Symbols                   COleFont ft=pointStyle.

2007-10-27 14:19:00 2068 1

转载 mapx 画矩形

    //绘制一个空心矩形区域。    CMapXRectangle rec;    rec = m_ctrlMapx->GetBounds();    double x1 = rec.GetXMin();    double y1 = rec.GetYMax();    double x2 = rec.GetXMax();    double y2 = rec.GetYMin();    

2007-10-27 14:14:00 1868

转载 mapx 画圆

double mapx,mapy;m_mapx.ConvertCoord(&x,&y,&mapx,&mapy,miScreenToMap);CMapXPoint point;point.CreateDispatch(point.GetClsid());point.Set(mapx,mapy);CMapXFeature ft; ft=m_mapx.GetFeatureFactory().Crea

2007-10-27 14:11:00 2279 1

转载 mapx 画线

CMapXPoints  Pnts; CMapXFeatureFactory FeaFac; CMapXLayer   Layer;CMapXFeature Feature;CMapXStyle   Style;double centerX,centerY;centerX=m_ctrlMapX.GetCenterX();centerY=m_ctrlMapX.GetCenterY();Pnt

2007-10-27 14:08:00 2154

转载 mapx 画点

float screenX,screenY;double mapX,mapY;CMapXPoints pts;CMapXPoint pt;CMapXLayer layer ;pts.CreateDispatch(pts.GetClsid() );pt.CreateDispatch(pt.GetClsid() ); screenX = X;screenY = Y; m_pMap-

2007-10-27 13:46:00 1310

转载 cmm 短评

瑞理中国公司的技术总监吴穹      它告诉企业怎么做软件工程,有哪些要求,如何检验,每个阶段的重点是什么、应该做什么。这个框架为软件工程化提供了一个循序渐进的模式,并不是将这个过程简化为一步――从0到1。胡大庆 摩托罗拉中国公司的网络研发中心      最根本的收获是每一个具体参与其中的员工,无论是项目经理,还是工程师,甚至一些高层管理人的做事方法逐渐变得标准化、规范化了。      以前,我们

2007-04-16 08:56:00 538

转载 CMM五级标准

      第一级:初始级 Initial Level   在初始级,企业一般不具备稳定的软件开发与维护的环境。 常常在遇到问题的时候,就放弃原定的计划而只专注于编程与测 试。软件过程的特点是无秩序的,偶尔甚至是混乱的。几乎没有什么过程是经过定义的,成功依赖于个人的努力。   第二级:可重复级 Repeatable Level   在这一级,建立了管理软件项目的政策以及为贯彻执行

2007-04-16 08:47:00 807

转载 CMM工具帮助简述[2]

为什么要采用面向对象的分析设计方法?主要原因有3点:  ● 通过分析和设计,使开发者可以先关注问题的领域,再关心具体的设计和编程问题,从而有利于降低整个过程的复杂性,提高分析模型和设计模型的质量。   ● 生成的分析模型和设计模型形成文档的主体,从根本上解决“先写代码、再补文档”的老问题,并能帮助团队规避因人员流动带来的不良影响。   ● 分析模型和设计模型将成为团队内部以及团队之间有

2007-04-16 08:39:00 674

原创 最近

         奇怪最近的状态。         项目将收尾,心情放松下来,却又放不下,头绪挺多。         新项目即将开始,要做旧版本的升级,还有一些奇奇怪怪的想法。          呵呵。        有整理思路的software吗?要有的话,我要一个,设定好条件参数,设定好主观臆想,其余的不管了。        现在大事不敢做计划了,总在变,如风赶浮云,雨打浮

2007-04-02 21:54:00 480

Test Machine

非常简单的小程序。 通过创建多个线程,运行浮点数计算及创建大内存对象消耗系统资源,达到测试服务器性能的目的。 对于测试多个cpu,大内存的服务器有效,类似于一个微型的sdmax.

2011-04-18

mapx 反序列化读取数据

来自mapinfo 官网的例子。<br>This method can be used to restore a dataset from a map which has been stored to a file using OLE serialization. Since datasets rely on external data, the contents of the datasets are not serialized to the file along with the rest of the map's information. DataSets.Restore can be used to restore a dataset (and its themes) by pointing a de-serialized map back to the external data.

2007-10-27

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除