注册 登录
编程论坛 ASP技术论坛

System.runtime.InteropServices

yanghailan 发布于 2007-12-02 10:39, 998 次点击
[bold]System.runtime.InteropServices 是.NET 中引用COM.或DOM组件要引用命名空间吗?具体用法是什么啊?请知道的帮忙啊!谢了~~~[/bold]
3 回复
#2
multiple19022007-12-02 11:48
asp里没见过这个东西。
#3
yms1232007-12-02 19:18
.NET中个人所知,引用了ActiveX或COM组件,除了引用之外,好像要还需要在程序里声明才能使用。
#4
yms1232007-12-02 19:23
///   <summary>   
  ///   取窗口标题   
  ///   </summary>   
  [DllImport("User32.Dll")]   
  public   static   extern   void   GetWindowText(IntPtr   h,   StringBuilder   s,   int   nMaxCount);   
引用Win32 API到C#中就需要声明dll,因为有些COM组件并非.NET框架编写。
1