Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

GetProcAddress fails with a VB compiled DLL

Posted on 1998-09-10
1
Medium Priority
?
411 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

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…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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 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…

721 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