Mini556976

So I made a Dll called 'mid_day_projects.dll'

And in it a have 3 functions:

Function 1:

Code Snippet

function add(a as integer,b as integer,c as integer)

c = a + b

return c

end function

Function 2:

Code Snippet

function mult(a as integer,b as integer,c as integer)

c = a * b

return c

end function

Function 3:

Code Snippet

function sub(a as integer,b as integer,c as integer)

c = a - b

return c

end function

How would I, from my program, use those functions

I really need this quickly so if you help me Ill put you in the credits of my software.

Thnx in advance



Re: Visual Basic Express Edition HEy! Can any1 Help me? - DLL question

DMan1

First ...make a project level reference to the dll and then you can reference the dll's functions from code...

It will also depend upon whether or not your functions are in a shared class or if you have instrantiate the class or if you put them in a module....

Public Funtion TestAdd() as integer

Dim Answer as Integer = mid_day_projects.add(1,2,3)

return Answer

End Function