English

How To: Use MapObjects objects without instantiating the map control

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();