Solved

VB6 Referencing an external DLL file written in C++

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

Enroll in July's Course of the Month

July's Course of the Month is now available! Enroll to learn HTML5 and prepare for certification. It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

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…
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 structures in the C programming language.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Suggested Courses
Course of the Month5 days, 17 hours left to enroll

627 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