Solved

GetProcAddress fails with a VB compiled DLL

Posted on 1998-09-10
1
371 Views
Last Modified: 2008-01-16
Why does GetProcAddress fail when used on a DLL compiled by VB. Also when I open the dll in DEPENDS (a dll spy program shipped with VB6) the required function in the dll is not shown.
0
Comment
Question by:AndyF
1 Comment
 
LVL 13

Accepted Solution

by:
Mirkwood earned 100 total points
ID: 1434046
VB does not export any functions publicly in a DLL.
So although you have public modules with public functions in your project. VB will not export them to the outside world.
The only thing that you can do it create a class and make the functions member of this class. Make sure that your DLL is an ActiveX DLL.The client who needs this functions can now instantiate an instance of this class and call the functions.


0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Check Disk (CHKDSK) on all volumes and fix if needed. 8 157
Extract Data and filename Macro 20 99
Window placement 17 65
DIR issue 7 47
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
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…

746 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

10 Experts available now in Live!

Get 1:1 Help Now