Wrox Programmer Forums
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 6th, 2006, 06:13 PM
Registered User
 
Join Date: Dec 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default DLL Hell

I don't know if this has been discuss. If it has, please point me to the right thread.

I have a Access form with a button. If clicked, it'll call a function which resides in an external DLL. But when I run it, there's a run time error saying that the DLL is not found. Does anybody know I do wrong? It worked last week but now it stopped work. PLEASE HELP!! I would really appreciated. Here is what I did

In a module, I declare the function as below


Public Declare Function IsothermModel Lib "DllIsothermModel.dll" _
    (ByVal n As Long, ByVal t As Double, ByVal P0 As Double, P As Double, Q As Double, modelindex As Long, par As Double) As Long


Then call it in the click procedure

If (IsothermModel(n, t, P0, P(0), Q(0), modelindex, par(0)) <> 0) Then
            Me![Model] = modelindex
end if


What am i doing wrong? I have the DLL save under the same the directory as the database file.

 
Old December 7th, 2006, 08:43 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

Did you register the dll? It might have been rolled back somehow if you did.


mmcdonal
 
Old December 7th, 2006, 11:13 AM
Registered User
 
Join Date: Dec 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

When I tried to registe, it said couldn't find the registry point.






Similar Threads
Thread Thread Starter Forum Replies Last Post
How the dll hell problem has been solved in .NET kiran.mahamkali C# 2 May 3rd, 2007 10:12 AM
What Is dll Hell ? Bhalchandra VB Components 2 December 18th, 2006 03:23 PM
AutoNumber Hell somissac Access VBA 5 March 22nd, 2005 04:05 AM
Circular Reference Hell! RFickling C# 1 November 7th, 2004 06:38 PM
Printing Hell (richTextBox) mrhyman VB How-To 4 February 18th, 2004 10:20 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.