|Ok so I tried to do the same thing in VB.NET. I usally work in a console application for ease and once I have succeded I will convert or redo what every I have to do.
The console application in VB.NET is by default in a module.
If I do the following in VB.NET from the module
Dim dllRef As New sumdll.sumdll()
Dim a As Integer = 10
Dim b As Integer = 18
Dim c As Integer = 0
Dim d As Double = 0.0
d = dllRef.sumdll(a, b, c)
But if I move the same code to a class I still get the same error as before. Why can’t this be called from a class? If I can get this to run from a class I am sure I will be able to call this from C#.