Results 1 to 3 of 3

Thread: DLL...DLL...DLLs HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 1999
    Location
    Lost
    Posts
    216

    Post

    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..........
    B.S Computer Science
    M.S Computer Engineering

  2. #2
    Hyperactive Member
    Join Date
    Feb 2000
    Posts
    284

    Post

    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

  3. #3
    New Member
    Join Date
    Feb 2000
    Location
    Hull,Quebec, Canada
    Posts
    7

    Post

    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)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width