BCB5 与MAPX 添加Feature 的有关问题
BCB5 与MAPX 添加Feature 的问题
How to use BCB 5 with mapx 5.0 to add a Feature in a Layer
RT 怎么在一个图层增加图元,bcb 中 与vc中有些不同,希望高手解答bcb中怎样添加
------解决方案--------------------
兄弟,BCB不太支持mapx的,最好不要用这个做,用delphi或VC吧
How to use BCB 5 with mapx 5.0 to add a Feature in a Layer
- C/C++ code
String strFeature CMapXPointDisp point; CMapXFeature * fNewSymbol = NULL; double X,Y; X=1.0; Y=1.0; point.Bind(StringToOleStr("MapX.Point.5")); //point = Map1->ConvertCoordP(Variant(X), Variant(Y), miScreenToMap); point.set_X(double(X)); point.set_Y(double(Y));<br> fNewSymbol = Map1->FeatureFactory->CreateSymbol(EmptyParam,EmptyParam); fNewSymbol->set_Point(point); //error. it can not cover CMapXPointDisp to CMapXPointPtr fNewSymbol= Map1->FeatureFactory->CreateCircularRegion(miCircleTypeMap,point, Variant(30),EmptyParam, Variant(99), EmptyParam); Map1->Layers->_Item(Variant(1))->AddFeature(fNewSymbol, EmptyParam);
RT 怎么在一个图层增加图元,bcb 中 与vc中有些不同,希望高手解答bcb中怎样添加
------解决方案--------------------
兄弟,BCB不太支持mapx的,最好不要用这个做,用delphi或VC吧