MSDN上讲到 Microsoft.Office.Interop.Excel 的使用时,说
public class ApplicationClass : _Application, Application, AppEvents_Event解释:
This class supports the .NET Framework infrastructure and is not intended to be used directly from your code.
通常用 Application 而不用ApplicationClass
//------------------------------------------------------
是不是Com在定义Interface时有 Addref()和release(),为了最后释放内存时方便?
用coclass声明 变量 不好释放吗?