Results 1 to 3 of 3

Thread: DLL - Public Functions

  1. #1

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808

    DLL - Public Functions

    Hi!! I'm kinda new to this, actually it's the first DLL I've compiled so... I've written the program of my DLL, compiled it an added its reference to my new application. The problem is that I cannot see the public variables I've declared in a bas module (in my DLL) the same happens with the functions and subroutines (in the DLL).
    Can anybody explain me what do I have to do?
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    The variables in the module in the DLL are only public to the DLL project. To make them available to the User of the DLL you'd have to put them in a Public type of class. This is usually done through the properties of the class. If you are just making a function library type of thing then put those things in a class and make it GlobalMultiUse.

  3. #3
    Hyperactive Member
    Join Date
    Dec 2000
    Location
    Denver
    Posts
    265
    Set it for multiuse, but not globalmultiuse. Globalmultiuse makes the methods and properties available as if they were just a global function. I doubt that any of the calls to your dll are frequent enough to require being global in scope...especially since you'll likely use your dll for one or two apps...

    GlobalMultiUse will just add extra overhead as far as the compilation is concerned

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