I'm trying to figure out how to get a refrence to IExtensionManager without using IApplication. This is an Engine application that I am developing, and IApplication isn't available (the typical sample has you casting from IApplication like so)
Dim pExtMgr As IExtensionManager
Dim pExt As IExtension
Set pExtMgr = Application
I tried to simply co-create the ExtensionManager like this:
IExtensionManager xMan = (IExtensionManager) new ESRI.ArcGIS.esriSystem.ExtensionManagerClass();
but it failed, "Unable to cast object of type 'System.__ComObject' to type 'ESRI.ArcGIS.esriSystem.ExtensionManagerClass'"
So how do you do this?
Thanks in advance.