Solved

Specified DLL function not found (Error 453)

Posted on 1998-03-17
2
1,008 Views
Last Modified: 2012-06-27
Hello !

I like to make a dll for the my first time so I have put this function in a classmodule in a ActiveXdll project to test if it works:

 Public Function Convdbl2(var As Variant) As Double
'Convert Null to 0.
    If IsNumeric(var) Then
        Convdbl2 = CDbl(var)
    Else
        Convdbl2 = 0
    End If
End Function

And in my standard exe i have declare the function:

Declare Function Convdbl2 Lib "AUStyr32.dll" (ByVal var As Variant) As Double

But when i try to use it in my standard exe like: d# = Convdbl2(Null)
I get the error message:

Can´t find DLL entery point Convdbl2 in AUStyr32.dll.

Why, and how so solve it ?

/Janne
0
Comment
Question by:jannea
[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
2 Comments
 
LVL 1

Accepted Solution

by:
Anita030598 earned 50 total points
ID: 1459294
1. Remove the Declare Statement in the standard exe.

2. Select Project -> Reference menu item in VB IDE.

3. Find the entry for your ActiveX DLL in Available References and check that ON and click on OK.

3a. In the above step you can make out your DLL name in the bottom Location Field in OLE Automation frame. If you don't find it use Browse button and add it.

4.Save the project.

5. Now run the App and see.

0
 
LVL 1

Author Comment

by:jannea
ID: 1459295
Thanks Anita, now it works fine...

/Janne
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

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…
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 …
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

691 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