易截截图软件、单文件、免安装、纯绿色、仅160KB

再次求助!asp.net引用外部DLL问题

我有个外部的ycode.dll,我在asp.net 中就是引用不了,弹出错误的对话框,说是找不到该dll。我在网上找了一大堆资料,也都试了,绝对路径,甚至放在系统system32 下面 都没有用。。
我把代码[贴出来,今天就在这等了,解决后立即结贴。。。
C# code:

using System;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

using System.Runtime.InteropServices;
public partial class _Default : System.Web.UI.Page
{

[DllImport("ycode.dll", EntryPoint = "loadcode", SetLastError = true, ExactSpelling = false, CallingConvention = CallingConvention.StdCall)]
public static extern int loadcode(int i, int j, string str, string enjoy);
[DllImport("ycode.dll", EntryPoint = "Recognition")]
public static extern int Recognition(int i, int j, int a, string str, string enjoy, int b, int c, int d);

[DllImport("ycode.dll", EntryPoint = "Recognitiond")]
public static extern string Recognitiond(int i, int j, int a, string str, string enjoy);

[DllImport("ycode.dll", EntryPoint = "lstrcpy")]
public static extern int lstrcpy(string enjoy, int i);

[DllImport("


相关问答:

asp.net分页问题

select top 12 * from Product where [id] not in (select top 12 [id] from Product)
这样可以分页,但是我在后面想加个条件
select top 12 * from Product where [id] not in (select top 12 [id] from Prod ......

ASP.NET MVC架构发布了 - .NET技术 / ASP.NET

ASP.NET MVC架构发布了,你用了吗?
还在学习中

我也在学习。买书,听教程,看网上资料,下载例子,感觉听不错的,不过比起工厂模式,似乎逊色了点。。。欢迎到我博客互相学习

都用了5个版本了 从 PV1 到beta ......

asp.net中可输入的下拉框的问题 - .NET技术 / ASP.NET

Imports System.ComponentModel
Imports System.Web.UI
Imports System.Web.UI.Design
Imports System.Web.UI.WebControls
Namespace CBDAspNet.WebControls.HTML
  ''' <summary>
  '' ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号