erikadade

Binding to ArcGIS Desktop in C++

Discussion created by erikadade on Sep 21, 2011
Latest reply on Sep 24, 2014 by dentonzero
Hi all,

Can someone tell me how to bind a standalone C++ app to ArcGIS Desktop ?

I have put the following include in stdafx.h along with other esri libraries.

#import "C:/Program Files (x86)/Common Files/ArcGIS/bin/ArcGISVersion.dll" raw_interfaces_only raw_native_types no_namespace named_guids rename("esriProductCode","esriVersionProductCode" ) rename("VersionManager","esriVersionManager" )

And here is how I see others in forums binding to desktop in .NET:

'Add runtime management
ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.Desktop)

However, I cannot find a RuntimeManager class in the ArcGISVersion library to implement in C++.   Do you have to do this in Arc 10.0 before running AoInitialize?  If I just attempt to initialize using LicenseUtilities(.cpp), I get the error <no appropriate license available>

Do you need to have ArcEngine if you only want to bind to Desktop?

Thanks for your help!

Outcomes