Solved

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

Posted on 1998-11-13
1
267 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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

762 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now