Solved

Can't find DLL entry point / VB6

Posted on 2006-07-10
4
1,769 Views
Last Modified: 2012-06-22
Hi,

I'm calling a function from a dll written in C++ Borland 5.02 as follows:
declaration:
   Declare Function UpgradeTables Lib "emUpgradeDB.dll" (ByVal Region_English As Integer) As Long

call:
  dim Result as long
  Result = UpgradeTables(92)

In C++ the function is declared as follows:

   extern "C" int FAR _export UpgradeTables (int languageID)

The result is 'Run-Time error '453': Can't find DLL entry point UpgradeTables in emUpgradeDB.dll

Can anybody tell me what the problem could be?

Thanks!
0
Comment
Question by:ecomaster
4 Comments
 
LVL 29

Expert Comment

by:nffvrxqgrcfqvvc
ID: 17074969
Make sure the dll is in the system32 directory. The way your declaring the DLL if your debuging in the IDE its going to look for the DLL in the system32 directory.

However when you disturbute your application your exe will first look in the application path and then the system32 directory for your DLL as you have it declared above.

Also make sure the exported function is spelled correctly, because its case sensitive.
0
 
LVL 9

Expert Comment

by:justchat_1
ID: 17075934
Make sure the dll has a correct DEF file in... Also, if its a syntax error maybe the C++ TA could help you out...
0
 
LVL 8

Accepted Solution

by:
kaliyugkaarjun earned 500 total points
ID: 17079297
0
 

Author Comment

by:ecomaster
ID: 17079483
Hi,

thanks, kaliyugkaarjun. On the site you mentioned I found the solution. I declared according to:

     Declare Function UpgradeTables Lib "emUpgradeDB.dll" Alias "_UpgradeTables" (ByVal Region_English As Integer) As Long

and it works.

Many thanks !!
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

Suggested Solutions

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

760 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

20 Experts available now in Live!

Get 1:1 Help Now