cyohman

Scenario_Building_a_command_line_C_application

Discussion created by cyohman on Jul 7, 2010
Latest reply on Jul 7, 2010 by cyohman
http://help.arcgis.com/en/sdk/10.0/arcobjects_cpp/conceptualhelp/index.html#/Scenario_Building_a_command_line_C_application/000100000006000000/

Code Reached:
 if (!InitializeWithExtension(esriLicenseProductCodeEngine, esriLicenseExtensionCodeSpatialAnalyst))
    if (!InitializeWithExtension(esriLicenseProductCodeArcView, esriLicenseExtensionCodeSpatialAnalyst))
      if (!InitializeWithExtension(esriLicenseProductCodeArcEditor, esriLicenseExtensionCodeSpatialAnalyst))
        if (!InitializeWithExtension(esriLicenseProductCodeArcInfo, esriLicenseExtensionCodeSpatialAnalyst))
        {
          std::cerr << "Exiting Application: Engine Initialization failed. No suitable license found." << std::endl; 
          ShutdownApp(esriLicenseExtensionCodeSpatialAnalyst);
          AoExit(0);
        }


See attached picture as to why this makes no sense.

Attachments

Outcomes