- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have a larger program where VB6 code was changed to VB.net. It calls an IVF .dll which contains a bunch of routines. In trying to make it work, I made a test case whichjust multiplies a number by 2. Im using Visual studio 2005 and IVF version 10.1.014
The IVF.dll named bigd1.dll contains asubroutine bigd2which is called by bigV.
subroutine bigd2(was)
!DEC$ ATTRIBUTES DLLEXPORT::bigd2
integer was
was=was*2
return
end subroutine bigd2
VB.net program called bigV
Imports System.Runtime.InteropServices
Public Class Form1
Public Shared Sub bigd2(ByRef aaa As Integer)
End Sub
Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim aaa As Integer
aaa = TextBox1.Text
Call bigd2(aaa)
TextBox1.Text = aaa
End Sub
End Class
It compiles fine. Upon execution it gives the error
unhandled exception of type 'System.EntryPointNotFoundException' occurred in bigV.exe
Unable to find entry point named 'bigd2' in DLL'bigd1.dll'
The VB form shows up fine. If I remove the .dll file the error changes to didnt find the .dll. So its finding the .dll it just isnt finding the subroutine in the .dll.It's got to be something simple and I realize this is interface between 2 languages but any help you could give would be appreciated.
Tom
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page