Solved

VB6 Referencing an external DLL file written in C++

Posted on 2010-11-09
1
474 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 125 total points
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
The goal of this video is to provide viewers with basic examples to understand and use structures 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…

744 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

12 Experts available now in Live!

Get 1:1 Help Now