PC Review


Reply
Thread Tools Rate Thread

Calling DLL function

 
 
=?Utf-8?B?RHVhbENvcmVLYXBzMjAwNA==?=
Guest
Posts: n/a
 
      23rd Jan 2007
Hi all,

I am working on Excel 2007 Beta version.
I am facing a problem while calling a DLL in VBA for Excel 2007.
My DLL is located at the currrent directory location and i have declared it
in my VBA code as follows

Private Declare Sub table Lib "numTable.dll" (ByVal n As Integer, ByRef arr
As Long)

I have placed a command button on the worksheet to call the DLL's function.
But it gives error on clicking the button which says numTable.dll missing. I
have to call the DLL without changing its location i.e. current directory.

--
Thank You
 
Reply With Quote
 
 
 
 
NickHK
Guest
Posts: n/a
 
      23rd Jan 2007
This is standard windows DLL ? i.e. not an ActiveX DLL made with something
like VB5.

Are any dependencies of this DLL missing. You can check with Dependecy
Walker, free download:
http://www.dependencywalker.com/

Have you checked the current directory and current drive ?
?CurDir

NickHK

"DualCoreKaps2004" <(E-Mail Removed)> wrote in
message news:CD9A14AA-A465-43DC-9236-(E-Mail Removed)...
> Hi all,
>
> I am working on Excel 2007 Beta version.
> I am facing a problem while calling a DLL in VBA for Excel 2007.
> My DLL is located at the currrent directory location and i have declared

it
> in my VBA code as follows
>
> Private Declare Sub table Lib "numTable.dll" (ByVal n As Integer, ByRef

arr
> As Long)
>
> I have placed a command button on the worksheet to call the DLL's

function.
> But it gives error on clicking the button which says numTable.dll missing.

I
> have to call the DLL without changing its location i.e. current directory.
>
> --
> Thank You



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Method of calling a function where function name is stored in a variable or control Tony Vrolyk Microsoft Access VBA Modules 9 12th Jul 2007 07:20 PM
Method of calling a function where function name is stored in a variable or control Bob Quintal Microsoft Access 2 11th Jul 2007 08:49 PM
Calling EXE Function Getting handle to calling exe Abhishek Microsoft VC .NET 1 25th Sep 2006 01:58 PM
Calling managed function from unmanaged function in mixed mode dll slugster@gmail.com Microsoft VC .NET 1 25th Jul 2005 07:30 AM
Calling DoCmd.RunCommand acCmdSaveRecord, after calling an API function Savvoulidis Iordanis Microsoft Access Form Coding 2 19th Mar 2005 06:34 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:15 PM.