LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Location for DLL used by add-in (XLL)

Hello,

I have an Excel add-in written in C. It is an XLL (let's call it
"addin.xll") that exports a set of functions. In order to implement
those functions, the add-in relies on another external DLL (let's call
it "helper.dll"), which has lots of business logic and useful routines.

Now, I want to install addin.xll from an MSI package (built with WiX).
I already know how to put the XLL into any directory I want, and then
create an OPENx entry in the registry, so that the XLL will be
automatically loaded in Excel. My question is: where should I put
helper.dll? I can see the following possibilites:

1. Put it in any system-wide folder (Windows, System32): hateful and
polluting.

2. Put it in my own directory, add that to the PATH: works, but I would
rather not touch the PATH; I could be screwing over some other
helper.dll library used by a different program.

3. Put it next to addin.xll: it doesn't work, Excel tries to open the
XLL as if it was a data file, says the file is in an unrecognized
format.

4. Put it in an Excel-wide folder: haven't found any that works, other
than the path where EXCEL.EXE is installed (which, I guess, amounts to
the "current directory"). But this means adding stuff to a folder
controlled by Office's installer, which I would rather not do.

5. My personal preference: put it in my own directory, add that to a
magic place (registry, etc.) and have Excel pick it up automatically.
Am I dreaming?

Any suggestions? Thanks and best regards.

--
Gonzalo Diethelm

 
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
Macro - save to current location vs excel default location leezard Excel Discussion (Misc queries) 0 October 28th 08 03:04 PM
Tab location [email protected] Excel Discussion (Misc queries) 4 June 26th 07 03:26 AM
Mouse Location, Movement and Spreadsheet Location TCook Excel Programming 3 October 3rd 05 10:23 PM
row location narutard[_29_] Excel Programming 3 September 15th 05 09:11 PM
Go To Location choice[_2_] Excel Programming 1 November 14th 04 09:02 PM


All times are GMT +1. The time now is 02:33 PM.

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"