Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 811
Default Using dll with a dynamic link in VB

Hi Jul,

There isn't any way to do this that I'm aware of. I don't think it's
generally a good idea to give users the decision where to place DLLs anyway,
because it might give them the idea that they could move them later. My
advice would be to put the DLL in a folder that you know will be part of the
user's PATH environment variable, like Windows or Windows\System or
Windows\System32 depending on the OS.

--
Rob Bovey, MCSE, MCSD, Excel MVP
Application Professionals
http://www.appspro.com/

* Please post all replies to this newsgroup *
* I delete all unsolicited e-mail responses *


"jul" wrote in message
...
I have a function in a dll (built in C) that is called through Excel VBA.

Currently I declare my function in VB as follows:
Declare Function MyFunction Lib "C:\MyDll.dll" (ByVal ...) as Integer

Yet, I would like the user to be able to specify the adress of the dll in
excel (via a message box or a cell).

How can I change the link "C:\MyDll.dll" in a dynamic way in VBA.

Many thanks in advance

Julien



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic link to website Rajan Iyer Excel Worksheet Functions 2 July 31st 07 08:45 AM
dynamic link Smat Excel Discussion (Misc queries) 2 September 14th 06 08:00 AM
dynamic link itay Links and Linking in Excel 1 February 25th 05 05:36 PM
Using dll with a dynamic link in VB AA2e72E Excel Programming 4 September 17th 04 01:21 PM
Dynamic Link to SQL Mark Bigelow Excel Programming 2 July 30th 03 09:49 PM


All times are GMT +1. The time now is 03:27 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"