J
Jerry West
I have created a simple VB.NET DLL. I want to test it using C# by calling
its only function and getting back the result. The function within the DLL
is:
Public Function ADD(ByVal first As Integer, ByVal sec As Integer)
Dim abc As Integer
abc = first + sec
Return abc
End Function
I compiled the DLL and then opened up VS2008 and started a C# project. I
added a reference to the DLL.
I know nothing about C#. My question is what else do I need to do in order
to be able to call this function, this DLL, from C#. Do I need to add a
"using" statement? What code statement would I use to call the function? Do
I need to declare the function within the DLL somewhere? If so, how?
Thanks for any insight!
JW
its only function and getting back the result. The function within the DLL
is:
Public Function ADD(ByVal first As Integer, ByVal sec As Integer)
Dim abc As Integer
abc = first + sec
Return abc
End Function
I compiled the DLL and then opened up VS2008 and started a C# project. I
added a reference to the DLL.
I know nothing about C#. My question is what else do I need to do in order
to be able to call this function, this DLL, from C#. Do I need to add a
"using" statement? What code statement would I use to call the function? Do
I need to declare the function within the DLL somewhere? If so, how?
Thanks for any insight!
JW