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

x
?
Solved

VB6 Referencing an external DLL file written in C++

Posted on 2010-11-09
1
Medium Priority
?
489 Views
Last Modified: 2013-11-27
I have an external DLL supplied by a third party that works with C++ and Delphi development, however when I try
referencing the DLL using PROJECT -> REFERENCES -> BROWSE menu option I receive a message "Can't add a specific reference to the file"

I have also tried to regsvr32 the dll in windows XP and received the following message: XXXX (dll path) was loaded, but the DLLRegisterServer entry point was not found. This file cannot be registered.

Does anyone have any ideas what the likely problem is??

Regards pnclick
0
Comment
Question by:pnclick
1 Comment
 
LVL 29

Accepted Solution

by:
nffvrxqgrcfqvvc earned 500 total points
ID: 34098494
The DLL sounds like a dynamic library (Windows Standard DLL) which has exported functions. You may need to use the exported functions of the DLL instead just like you would when using the Windows API. The DLL however must be written to use the __stdcall convention to be able to work in VB6. You can check if it has exported functions using depends.exe utility that ships with Visual Studio 6.
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

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…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.
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…

926 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