CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
英特尔®游戏设计大赛100美元现金周周送 专题改版:Java Web 专题
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  .NET技术 >  ASP.NET

asp.net能调用普通的dll吗?

楼主jtlyr()2003-11-01 21:47:24 在 .NET技术 / ASP.NET 提问

我用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

相关问题

  • ASP调用.net作出来的DLL
  • Asp中如何调用Dll?
  • asp中怎么调用dll?
  • asp调用dll的问题
  • asp调用dll的问题
  • asp调用dll的问题
  • ASP调用DLL问题
  • .net写的dll,是com组件吗?asp能调用吗?
  • 如何用ASP。NET(VB)调用C++动态库(DLL)??
  • 怎样在ASP中调用dll文件?

关键词

  • asp.net
  • 普通
  • dll
  • asp
  • 调用
  • dllimport
  • 实现
  • need
  • directory

得分解答快速导航

  • 帖主:jtlyr
  • saucer

相关链接

  • CSDN .NET频道
  • .NET类图书
  • C#类图书
  • .NET类源码下载

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
世纪乐知(北京)网络技术有限公司 版权所有, 京 ICP 证 020026 号
北京创新乐知广告有限公司 提供技术支持
Copyright © 2000-2007, CSDN.NET, All Rights Reserved
GongshangLogo