Results 1 to 2 of 2

Thread: vb - How to Get types from a DLL and TypeArrays, Array of Types

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2005
    Posts
    11

    vb - How to Get types from a DLL and TypeArrays, Array of Types

    Get types from DLLs,and do things like how to Get Arrays of types

    This is an ActiveX.dll example, in Visual Basic 6.
    I do not know if vb5 can pass an Array,Please if you know let us know



    Open: ( Getting_type_from_DLL_4_ME.vbp )

    ( Then Make it !!!!!! )

    ***************** Next *****************

    Open: ( The_Test.vbp )

    Then and run( The_Test.vbp )

    *************** Notes ********************

    ¡¡¡ Some_Types.cls, Instancing Property !!! ===> (Important)
    ¡¡¡ Subs_Functions.cls, Instancing Property !!!

    Subs_Functions.cls, Instancing Property= 5 MultiUse.

    Allows other applications to create objects from the class. One instance of your component can provide any number of objects
    created in this fashion.

    Some_Types.cls, Instancing Property= 6 GlobalMultiUse.

    Similar to MultiUse, with one addition: properties and methods of the class can be invoked as if they were simply global

    functions. It’s not necessary to explicitly create an instance of the class first, because one will automatically be created.


    "ByRef" and "ByVal" are Optional.

    The default is "ByRef" and it is more efficient too because you aren't creating two copies.

    However, I think they are important to add, they make it easy too see if your argument Value may or may not be changed

    "ByRef"
    By reference.
    A way of passing the address of an argument to a procedure instead of passing the value. This allows the procedure to access

    the actual variable. As a result, the variable's actual value can be changed by the procedure to which it is passed. Unless

    otherwise specified, arguments are passed by reference.

    "ByVal"
    By value.
    A way of passing the value of an argument to a procedure instead of passing the address. This allows the procedure to access a

    copy of the variable. As a result, the variable's actual value can't be changed by the procedure to which it is passed.
    Attached Files Attached Files
    Last edited by It's_Me; Aug 25th, 2006 at 06:53 PM.
    Artificial intelligence usually beats real stupidity.

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