Results 1 to 4 of 4

Thread: ActiveX DLL

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2000
    Posts
    81

    Lightbulb

    Hey everyone,

    I have a function that I want to keep updating in the future. However, every time I update the one function, I don't want to have to re-release the entire EXE, so I thought that it would probably be a good idea to drop the function into a DLL and then get the program to automatically download the DLL from a central server on the internet. Essentially, it will then autoupdate, with no probs! However, having put the function in the DLL and compiled the DLL I don't have a clue where to go from here (ie/ how to call the function, how to register the library). Any ideas, guys?

    cheers,

    Sam

  2. #2
    New Member
    Join Date
    Aug 2000
    Posts
    10
    u need to create an object for this .dll (class) in your .exe

    option explicit
    private obj1 as clsPractical


    public function callPracticalJoke()
    set obj1=new clsPractical
    if obj1.practicalJoke = false then
    exit function
    end if

    'note:modify your practicalJoke function to return a bollean value

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Mar 2000
    Posts
    81

    Thumbs down ???

    I don't getcha. Let me say I've compiled a function, for instance DoSystemCheck(), into a DLL. How do I access that function from that DLL?

  4. #4
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    After you compile the dll register it then in your VB project reference the dll and then you use like a class module.

    Code:
    private functionfromDll as clsOrDLLName 
    
    set functionfromDll =new clsOrDLLName 
    
    functionfromDll.NameOfFunction
    using it should look something like that

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