How to Create and Use the DLL

 

Q1. How to create a dll file in .net?

S1: When you create a new project, you must choose the project type as "Class Library". Then after you complie the project/solution, you will get a dll file.

Another method is to change the project's properties. In the "Application" Option, change the output type to class library.

Q2. How to use a dll file in .net?

S2: First, you must get the dll file :)

      Then, you should add Reference for this dll, Project->Add Reference.

            btw: It's the same thing in the CPlusPlus and Java.

  Now, when you want to use the function provided by this dll file, you can use the class in the dll to get a instance, then you can get the right to invoke the functions.

e.g. CSample cs = new CSample();

  cs.fun1();

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值