http://edndoc.esri.com/arcobjects/9.2/ComponentHelp/esriFramework/AppRef.htm
System.Type t = System.Type.GetTypeFromProgID("esriGeometry.SpatialReferenceEnvironment"); ISpatialReferenceFactory pSpatialReferenceFactory = (ISpatialReferenceFactory)System.Activator.CreateInstance(t);
Dim t As System.Type = System.Type.GetTypeFromProgID("esriGeometry.SpatialReferenceEnvironment") Dim pSpatialReferenceFactory As ISpatialReferenceFactory = CType(System.Activator.CreateInstance(t), ISpatialReferenceFactory)