Solved

Specified DLL function not found (Error 453)

Posted on 1998-03-17
2
968 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
2 Comments
 
LVL 1

Accepted Solution

by:
Anita030598 earned 50 total points
Comment Utility
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
Comment Utility
Thanks Anita, now it works fine...

/Janne
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

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…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

728 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

9 Experts available now in Live!

Get 1:1 Help Now