How Can I use a C# dll in out of .Net Environment?

Hi everyone,
I made a dll with ClasLibrary project in C# and now I need use it out of .net environment,I declare my dll same as following statement:
Private Declare Function Multiply Lib "ClassLibrary1.dll" (ByVal a As Integer, ByVal b As Integer) As Integer
but I get this error: "Object required"
when I use this dll in .net environment there isn't any problem and it works well ,Please tell me what is wrong ?

Best Regards.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!