Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

GetProcAddress fails with a VB compiled DLL

Posted on 1998-09-10
1
Medium Priority
?
419 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 300 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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 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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

972 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