系统,.entry点未找到异常 [英] System, .entry point not found exception

查看:98
本文介绍了系统,.entry点未找到异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将第三方dll集成到我们的应用程序中。我们的应用程序是在.net framework 1.1上开发的,是在vb .net中开发的。



我尝试过:



我将dll的引用添加到应用程序中,如下所示



声明函数Begin Libpro.dll()作为String



并按下按钮点击dll中的方法如下所示


string result =开始()



当调试器到达上面一行并抛出异常无法找到名为Begin the dll

I am integrating a third party dll into our application. our application was developed on .net framework 1.1 and was developed in vb .net.

What I have tried:

I am adding the reference of dll into the application as below

Declare Function Begin Lib "pro.dll" () As String

and accessing the method in the dll as below when a button clicks

string result=Begin()

The problem raises when the debugger comes to the above line and throwing the exception unable to find an entry point named Begin the dll

推荐答案

Quote:

我正在将第三方dll集成到我们的应用程序中。

I am integrating a third party dll into our application.



从未想过与dll作者/支持人员交谈?

你没有提供有关dll的信息。你知道有多少dll文件被命名为'pro.dll'吗?

没有任何有用的东西是不可能帮助你的。


Never thought about talking to dll author/support ?
You gave no information about the dll. Do you have an idea of how many dll files are named 'pro.dll' ?
It is impossible to help you without anything useful.


你是尝试使用P / Invoke使用.dll。那个声明... yada yada yada行是你如何定义一个在非托管代码外部库中实现的函数。



哦,你是也宣称它错了。这就是为什么你收到错误信息的原因。


你有一个更大的问题。



您不能在.NET 1.1应用程序中使用.NET 2.0 .DLL。您必须重新编译并可能重写针对.NET 2.0的应用程序才能使用.DLL。



使用.DLL非常简单。在应用程序项目中,添加对.DLL文件的引用并导入所需的命名空间。之后你做的完全取决于你正在使用的.DLL以及它如何暴露它的类和方法。
You're trying to use a .dll using P/Invoke. That "Declare ... yada yada yada" line is how you define a function that's implemented in an un-managed code external library.

Oh, and you're declaring it wrong too. That's why you're getting the error message you're getting.

You have a much larger problem though.

You can't use a .NET 2.0 .DLL in a .NET 1.1 application. You have to recompile, and possible rewrite, your application targeting .NET 2.0 to use the .DLL.

Using the .DLL is rather simple. In your application project, add a reference to the .DLL file and import the namespaces you need. What you do after that depends entirely on the .DLL you're using and how it exposes its classes and methods.


这篇关于系统,.entry点未找到异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆