title: creating DLL in VB NET. Does it HAVE to be a class library?
body: <p>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.</p>
  
  <p>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)</p>
  
  <p>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.</p>
  
  <p>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?</p>
  
  <p>Thanks.</p>
  
  <pre><code>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)
  </code></pre>