I have another program (which I do not have the source for, already compiled) that is calling a DLL. I want to swap the DLL out and put my own in its place, to run my own model (inside the DLLs) rather than this other one that comes with the software.
I have made DLLs in fortran using the G95 compiler that work declaring them dynamically similarly to below. I have also looked into creating DLLs with VB NET, but it seems the only options are Class Libaries, which don't get called and declared the same way as below. I do have the code for the function declaration from the developer, but that is all (see below)
Is there a way to create working DLLs using VB NET that don't involve the class library, that I could name the dll file "318dll.dll", and have a function inside called CalcLoss and thats it, not class, one function only. The only way I know how to create DLLs using VB NET involves the class library and then you have to include existing item, and it magically appears available in your project.
Here is the template calling code for the fortran DLLs that have been working. how do I make this kind of DLL with VB NET?
Thanks.
Declare Sub CalcLoss Lib "318dll.dll" (TanTHT As Single, RanTHT As Single, EXTNSN As Boolean, ByVal Mode As String, Loss As Single, FSPLSS As Single)