Results 1 to 3 of 3

Thread: ActiveX DLL's

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 1999
    Posts
    239

    Post

    Does anyone know how to create an ActiveX Dll to work basically the same as a VB internal Function would work to make a call to a DLL, passing two variables "a" and "b" to the DLL and having the it return a variable "c" which would be the sum of a and b. Your help would be appreciated.



    ------------------

  2. #2
    Hyperactive Member
    Join Date
    Jan 2000
    Posts
    355

    Post

    can u re-state your question.. its a bit confusing

    i think this is what u want:
    (in your DLL)

    Code:
    Public Function Add(ByVal a as long, ByVal b as long) as long
    
    Add = a + b
    
    end function
    although its not really worth the bother, you may as well just add them manually in your code?



    ------------------
    cintel rules
    www.cintelsoftware.co.uk

  3. #3
    old fart Frans C's Avatar
    Join Date
    Oct 1999
    Location
    the Netherlands
    Posts
    2,926

    Post

    If you want to use the function like a global function in your standard exe, you should set the instancing property of the class in the activex dll to GlobalMultiUse. In your standard exe add a reference to the dll.

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