Select to view content in your preferred language

ClassFactory cannot supply requested class

1194
3
11-06-2009 07:35 AM
MarkCederholm
Frequent Contributor
This line is failing right off the bat in 9.4 Beta:

IAoInitializePtr ipInit(CLSID_AoInitialize);
0 Kudos
3 Replies
MarkCederholm
Frequent Contributor
C++ support is coming "after Beta 1".  Hopefully there will be a linkable library to support the equivalent of VersionManager.LoadVersion.
0 Kudos
RalfGottschalk
Esri Contributor
To use LoadVersion in C++ do the following:

Import the ArcGISVerion.dll

#import "libid:6FCCEDE0-179D-4D12-B586-58C88D26CA78" no_namespace raw_interfaces_only no_implementation rename("esriProductCode", "esriVersionProductCode")

You may have to rename the esriProductCode because it is also in esriSystem.  Then add the following line before any ArcObjects code.

IArcGISVersionPtr ipVer(__uuidof(VersionManager)); 
VARIANT_BOOL succeeded;
if (FAILED(ipVer->LoadVersion(esriArcGISEngine, L"9.4", &succeeded)))
    return 0;


You are right, the C++ sdks are currently are not available for Beta 1.
0 Kudos
MarkCederholm
Frequent Contributor
That worked!  Thanks,
0 Kudos