Solved

VB6 Referencing an external DLL file written in C++

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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Suggested Solutions

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 …
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
The goal of this video is to provide viewers with basic examples to understand recursion in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.

734 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