?
Solved

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

Posted on 1998-11-13
1
Medium Priority
?
291 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 200 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses
Course of the Month17 days, 8 hours left to enroll

829 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