Click here to Skip to main content
15,885,309 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted
Updated 30-Jan-18 18:26pm
Comments
phil.o 30-Jan-18 23:13pm    
A .dll is not meaningful per se; it can be a managed (.NET) dll, or an unmanaged one. What you are using tends to mean that it is an unmanaged library, but you simply did not provide enough information for us to help.
Member 13142345 30-Jan-18 23:52pm    
the dll application is developed on the .net framewrok 2.0

Quote:
I am integrating a third party dll into our application.

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.
 
Share this answer
 
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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900