Solved

Specified DLL function not found (Error 453)

Posted on 1998-03-17
2
1,005 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone 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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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…
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…
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…

736 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