?
Solved

Specified DLL function not found (Error 453)

Posted on 1998-03-17
2
Medium Priority
?
1,031 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 200 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
Suggested Courses
Course of the Month8 days, 11 hours left to enroll

764 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