asp.net能调用普通的dll吗?
我用vc6.0生成了一 .dll(普通的,非com组件),我想用asp.net 调用它,能实现吗?如何才能实现?
谢谢
所有的分都奉上了
问题点数:10、回复次数:3Top
1 楼jtlyr()回复于 2003-11-01 22:12:40 得分 0
upTop
2 楼saucer(思归)回复于 2003-11-02 08:10:12 得分 10
yes, use P/Invoke, for example
using System.Runtime.InteropServices;
using System.Text;
[DllImport("advapi32.dll")]
public static extern bool GetUserName(StringBuilder lpBuffer, ref int nSize);
you need to either copy your dll to system32 directory or specify a fullpath in the DllImport attribute. Also, you may need to grant the ASPNET account access to the directory where the DLL isTop
3 楼jtlyr()回复于 2003-11-02 12:23:09 得分 0
我试试先Top




