Solved

VB6 Referencing an external DLL file written in C++

Posted on 2010-11-09
1
479 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
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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Visual Studio 2005 text editor 10 38
VB6 ListBox Question 4 42
converting visio 2010 to powerpoint 2010  - formatting issues 5 68
Constant string is of type char *   ? 7 28
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…
Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
The goal of this video is to provide viewers with basic examples to understand and use pointers in the C programming language.
The goal of this video is to provide viewers with basic examples to understand opening and writing to files in the C programming language.

785 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