HOW TO

Use MapObjects objects without instantiating the map control

Last Published: April 25, 2020

Summary

To use MapObjects objects without instantiating a map control while developing in Visual C++, use 'AfxOleInit()' to initialize your Ole DLLs.

Procedure

When you do not add a map control to your application, you will need to manually initialize some COM libraries.

Initialize the Ole DLLs by writing the following line of code into the event:

Code:
AfxOleInit();


Article ID:000002478

Software:
  • Legacy Products

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Discover more on this topic