dll的封装方法

dll的建立:

step1:文件 ->  新建 -> 项目

step2:新建项目 -> 类库


step3:建立如下的cs文件:

 using System;
 using System.Collections.Generic;
 using System.Text;

 namespace MyDll
 {
      public class Js
      {
          public Js()
          {
              //默认构造函数
          }

          public static string ShowMsg(string Msg)
          {
              return Msg;
          }
  }
 }

step4:按ctrl+shift+B进行编译  即可得到dll文件

posted @ 2007-06-14 11:25  海底的鱼  阅读(370)  评论(0)    收藏  举报