-
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?
-
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.
-
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 :)