Quantcast
Channel: Forums - ArcObjects SDKs
Viewing all articles
Browse latest Browse all 1374

How can i get IApplication object.

$
0
0
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.

Viewing all articles
Browse latest Browse all 1374

Trending Articles