Mapx in C ++ Builder

xiaoxiao2021-03-06  77

1) Add TEXT FEATURE problem, if there is a Chinese character, then four characters behind the show, but the value exists is right. Garbled in VB. But how to pass the Variant ("Hello"), vocal; if you use Variant (WideString ("Hello"), you can take the correct incoming value with Variant.BStrVal.

2) When dynamically created, if you use the cmapxfeaturdisp.bind () and attatch methods, there is an abnormality when you exit your application.

3) MapObject-> Bounds = mapobject-> layers-> Bounds can't run, because Bounds only have Read methods

4) Conversion from **** DISP to Tagvariant. If DISP variables are declared, while the parameters pass the parameters are Variant, they cannot be incorporated.

Such as cmapxpositionsdisp is used by addline and other methods, it is not possible to pass (written as a Variant (*** DISP) to compile)

Solution: Mandatory CMAPXPSITIONSDISP into (cMapXPositions *)

5) pass

LayerInfo Create a layer solution: Mandatory CMAPXLAYERINFO DISP into (cMapxLayerInfo *), then call Layers.Add () can be 6) Cannot use code without creating Features objects, the following code creates Layer and Featuer Yes: 1) MapxlayerDisp Layer; Layer.bind (StringToolestr ("Mapx.Layer.5") 2) MapxfeaturesDisp Features; Features.Bind (StringToolestr ("Mapx.Layer.5"))

转载请注明原文地址:https://www.9cbs.com/read-91780.html

New Post(0)