Solved

Global Multi Use module - to use within Active X DLL and from referencing application

Posted on 1998-11-13
1
270 Views
Last Modified: 2012-08-13
Have an ActiveX DLL written using VB5.  Have a global multi use class module containing subs and functions to use in the referencing application,  but I also want to use these in other class modules within the DLL - I know I can create an instance of the global multi use class module for the other class modules to be able to use the functions, but I don't want to have to specify the root each time.  I.e. I don't want to use GlobalRootModule.MyFunction, I want to just use MyFunction (within the DLL and from the referencing application)
0
Comment
Question by:tomnich
1 Comment
 
LVL 13

Accepted Solution

by:
Mirkwood earned 100 total points
ID: 1444765
VB cannot exports modules like C++ can.
Therefor you cannot export individual functions.
BTW: Using a class to reference your functions has the advantage that the location of the DLL is not important anymore. If your are referencing exported functions, that you need the location of the DLL or the DLL should be in your path.

0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question