title: Importing Delphi Dll Into My Vb.net Project
body: <p>i tried to import delphi dll into my vb.net project
  <br></p>
  
  <p>this is my code:</p>
  
  <pre><code>Private Declare Function AddIntegers Lib "C:\Program Files (x86)\Borland\Delphi6\Projects\first dll\Project2.dll" Alias "AddIntegers" (ByVal a As Integer, ByVal b As Integer) As Integer
  
      Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
          Dim ii As Integer = AddIntegers(1, 3)
          MsgBox(ii)
      End Sub
  </code></pre>
  
  <p>this is the delphi library code:</p>
  
  <pre><code>library MyFirstLibrary;
  
  uses
    SysUtils,
    Classes;
  
  {$R *.res}
  
  function AddIntegers(_a, _b: integer): integer; stdcall;
  begin
    Result := _a + _b;
  end;
  
  exports
     AddIntegers;
  begin
  end.
  </code></pre>
  
  <p>there is an EntryPointNotFoundException:</p>
  
  <pre><code>Unable to find an entry point named 'AddIntegers' in DLL 'C:\Program Files (x86)\Borland\Delphi6\Projects\first dll\Project2.dll'.":""
  </code></pre>
  
  <p>how can i fix the EntryPointNotFoundException(the function AddIntegers is exist in my delphi code)?
  (vb.net or c#)</p>