hello,everyone: How can i get IApplication object,i use c# my class extends the ESRI.ArcGIS.ADF.BaseClasses.BaseCommand. i use the way below in the OnCreate(object hook) method; when i use: IApplication pApplication = hook as IApplication; the pApplication will be null. and when i use: IApplication pApplication = (IApplication)hook; will throw exception, the hook object cannot convert to IApplication; How can i get IApplication object,someone who can help me,very thank you.
... View more