Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm new to ESRI ArcObjects and I'm trying to create a basic MFC dialog application. I add the License and MapControl to the dialog resource. I compile and run the app, but I get the following runtime error:-

Could not bind to a valid ArcGIS installation. CoCreateInstance of OLE control {D7EAD71E-B663-4DCE-82C7-AEE2793DF5F3} failed.

Result code: 0x80040111 Is the control is properly registered? Warning: Resource items and Win32 Z-order lists are out of sync. Tab order may be not defined well. MFCDlg2.exe has triggered a breakpoint

I have registered the OCX's and I can see them in the registry. I'm running Win7 (64 bit) and Visual Studio 2008.

Please can anyone help


share|improve this question
have you authorized your dev kit installation?… – Kirk Kuykendall Feb 15 '11 at 14:23

Are you compiling as an x86 (32-bit) application? ArcObjects is 32-bit only, so your application must be as well.

share|improve this answer

Open you VS,run Tool/"ActiveX Control Test Container" and try to add MapControl to it.any actx control which has been registed successfully you can add it to this container.If any problem with license(I think) you receive error on run time not compile time

share|improve this answer

See this help topic for instructions on how to bind your application to an ArcGIS runtime in Visual C++:

// Load the ArcGISVersion library.
// This code is commonly placed in the StdAfx.h header file.
#import "libid:6FCCEDE0-179D-4D12-B586-58C88D26CA78" raw_interfaces_only no_implementation

// The following code can be used to bind to ArcGIS Engine Runtime:
ArcGISVersionLib::IArcGISVersionPtr ipVer(__uuidof(ArcGISVersionLib::VersionManager));
VARIANT_BOOL succeeded;
if (FAILED(ipVer->LoadVersion(ArcGISVersionLib::esriArcGISEngine, L "10.0",&succeeded)))
    return 0;
share|improve this answer

In Start -> ArcGIS -> run ArcGIS Administrator -> Engine -> Availability ->

I think you need both ArcGIS Engine Developer Kit and ArcGIS Engine Runtime to be authorized.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.