Creating Dispatch Pointers in C++
Applies to: MapObjects 2.0
When using MFC C++ and MO2 you need to create dispatch pointers. To do that
you supply a class ID or GUID. Alternatively, you can supply a text
description. This document lists the text descriptions used by MapObjects
2.0.
TEXT Strings Needed to CreateDispatch Pointers
Within a MFC application that uses MapObjects2
you may need to create a new MO object from scratch, that is, you will not be using an object that is
returned from a function as shown below:
CMoRectangle
m_rect( m_map.GetExtent() );
If you need a new MO object you will also need to create a new dispatch pointer to go with it, as shown below:
CMoRectangle m_rect;
m_rect.CreateDispatch(TEXT("MapObjects2.Rectangle"));
The text string that is used to represent the MO GUID for the object in question is not always obvious. The following is a list of all createable MapObjects2 class descriptions.
"MapObjects2.ChartRenderer"
"MapObjects2.ClassBreaksRenderer"
"MapObjects2.DataConnection"
"MapObjects2.Datum"
"MapObjects2.DotDensityRenderer"
"MapObjects2.Ellipse"
"MapObjects2.EventRenderer"
"MapObjects2.GeoCoordSys"
"MapObjects2.GeoTransformation"
"MapObjects2.Geocoder"
"MapObjects2.GroupRenderer"
"MapObjects2.ImageLayer"
"MapObjects2.Line"
"MapObjects2.LabelPlacer"
"MapObjects2.LabelRenderer"
"MapObjects2.Map.1"
"MapObjects2.MapLayer"
"MapObjects2.MapPropPage.1"
"MapObjects2.Point"
"MapObjects2.Polygon"
"MapObjects2.Points"
"MapObjects2.PlaceLocator"
"MapObjects2.PrimeMeridian"
"MapObjects2.ProjCoordSys"
"MapObjects2.Projection"
"MapObjects2.Rectangle"
"MapObjects2.Spheroid"
"MapObjects2.Standardizer"
"MapObjects2.Strings"
"MapObjects2.Symbol"
"MapObjects2.Table"
"MapObjects2.TableDesc"
"MapObjects2.TextSymbol"
"MapObjects2.Unit"
"MapObjects2.ValueMapRenderer"
"MapObjects2.Zrenderer"
|