Results 1 to 3 of 3

Thread: question about ActiveX DLL

  1. #1

    Thread Starter
    Lively Member Deucy's Avatar
    Join Date
    Mar 2003
    Location
    Cali
    Posts
    85

    question about ActiveX DLL

    i just found out that i could make my own DLL's from VB (some idiot told me that i can't make my dll's thru VB, has to be thru VC++ at least.. ugh).. so anyways.. i was, somehow, able to make a dll that has local variables.. and it worked.. how come? then a dll is simply a defined class? i thought it was just a couple of independent functions.. i need some clarification on that, plz.. thx

  2. #2
    Randalf the Red honeybee's Avatar
    Join Date
    Jun 2000
    Location
    off others' brains
    Posts
    4,345

    Well ...

    There are two types of DLLs, one is what you get from C, where you can just put a bunch of functions into a file and call it a DLL. The other is a COM DLL, which you can make through VB. A COM DLL is a component, or a class. You cannot put together individual functions and create a COM DLL. If you indeed want to only collect a few frequently used functions in a DLL, use a class, add the functions as methods of the class, set the instancing property of the class to Global and then compile the DLL in VB.

    .
    I am not a complete idiot. Some parts are still missing.
    Check out the rtf-help tutorial
    General VB Faq Thread
    Change is the only constant thing. I have not changed my signature in a long while and now it has started to stink!
    Get more power for your floppy disks. ; View honeybee's Elite Club:
    Use meaningfull thread titles. And add "[Resolved]" in the thread title when you have got a satisfactory response.
    And if that response was mine, please think about giving me a rep. I like to collect them!

  3. #3

    Thread Starter
    Lively Member Deucy's Avatar
    Join Date
    Mar 2003
    Location
    Cali
    Posts
    85
    oh.. so that idiot was right :P.. i'm the idiot

    thx, bee..

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