-
How can i make a dll file in vb.?!?!?!?
This dll file contains functions.?!?!?!?
Once done, i want to include this file again in a vb project.
ex: file name: Test.dll
function name: Factorial
as follows:
Public Declare Function Fact Lib "test.dll" _
Alias "Factorial" (ByVal Number As Integer) As Integer
Thank..........
-
Go to project properties and one of the options will be to make and ActiveX Dll.
Once you have compiled the DLL and it is registered you can then reference it as you would any other DLL or class etc
-
Using declare is for non-ActiveX dll's only. You can explicitly reference a dll created in VB by going to 'Project > References" in the VB dev environment.
you can then create the object like so:
dim varname as classname
set varname = new classname
varname.Factorial(argument)