Solved

Specified DLL function not found (Error 453)

Posted on 1998-03-17
2
981 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
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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 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…

805 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