Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 224
Default Declare Function issue with Vista

I distribute a standard DLL with my Excel Add-In, install it to
<windir\System32, and reference it from the Add-In with Declare
Function. That works fine with Windows XP, but on Vista, if the user
doesn't right-click the setup file and choose Run As Administrator,
the DLL doesn't get copied.

I could copy it to the Add-In's folder instead, and then there would
be no problem copying the DLL to that folder, but since the user can
customize the install folder during setup, I can't hardcode the folder
in the Declare Function statement.

I could add the user's chosen install path to the system path, but if
my own is any indication, that isn't done much anymore, and I'm not
sure that it's a good idea.

Any suggestions on best practices for calling a custom standard DLL
from a Declare Function statement in Excel VBA?


Thanks,

Greg

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
Solution for stdole32.tlb issue with excel and vista sunny Setting up and Configuration of Excel 1 March 5th 09 07:56 PM
Private Declare Function David A. Excel Programming 6 July 31st 07 06:38 PM
Lib parameter in Function Declare ojv[_2_] Excel Programming 4 June 12th 07 07:40 AM
Declare and array in a function Dave Excel Programming 3 September 30th 06 03:41 AM
How do I declare a function whose output is an array? Schizoid Man[_2_] Excel Programming 5 May 24th 06 09:23 PM


All times are GMT +1. The time now is 04:08 AM.

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

About Us

"It's about Microsoft Excel"