Getting a DLL written in Visual Basic to run in VB.NET
Posted on 2011-02-27
Hello Experts -
I am trying to get a DLL written in Visual Basic to work in VB.NET. Since I've never written a DLL before, I am wondering whether I need to include GETs and LETs to each variable to make it work. I think I read something like that years ago, but that was before NET was introduced.
As it stands right now I have a VB.NET Project with Interop functions defined to read and write to an INI fie with Windows APIs. These are in a Class called Ini. Then I have another Class called Automan that includes the functions I'd like to call from outside the DLL that put wrappers on the APIs and cut out all the details of getting what I want from the INI.
Is this sufficient? Or, do I have to define/declare the functions in some other way?
At present, I can't communicate with the DLL from a VB executable project.