Solved

GetProcAddress fails with a VB compiled DLL

Posted on 1998-09-10
1
388 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Visual Basic Excel Formatting error 4 127
String manipulation in Visual Basic 7 73
vb6 connector to mongodb 2 122
Visual Studio 2005 text editor 10 44
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…

830 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