Thanks, Regina, for your reply. The information was helpful.
Unfortunately, this "totally outdated" function is actually necessary.
I have developed a dll to be called from Basic. The dll must be
declared in a Basic Declare statement, and that statement requires
that the name of the dll be enclosed in quotations. If I hard code
the full pathname to the dll in the Declare statement, it all works fine.
The problem is that my client has international offices, and I have no
idea what the path on any given engineer's machine will be. I know the
name of the dll file itself, and one of the user inputs in the spreadsheet
is
selection of the path to the dll, which is then stored in Basic as a
variable. By setting the directory using the ChDir statement, the
dll is found and all works well.
As I understand it, the Declare statement cannot use a variable for the
library name. Hence the need for the ChDir.
The alternative of forcing the clients to put the dll somewhere in the
search
path is not acceptable. The clients are engineers without administrator
privileges.
I'm not sure what you mean by "totally outdated". Is there some
alternative?
Thanks,
Peter
***************************************************
Peter J. Puchyr, M.Sc., P.Eng.
SpaceTime Simulation Corp.
(507) 6787-0615 (cell in Panamá)
On Tue, Apr 26, 2011 at 09:23, Regina Henschel <rb.henschel@t-online.de>wrote:
Ho Peter,
pjpuchyr schrieb:
I have a Basic macro in Calc, which includes a ChDir statement. This
compiles and executes with no error, but does not in fact change the
working
directory. Looking in the source code (I've not yet ever done a build), I
see that there is an #ifdef in the code. Does anyone know if this define
is
turned on for Windows systems?
That is bug http://openoffice.org/bugzilla/show_bug.cgi?id=30692
I guess, it will get a "wontfix" because this function is totally outdated.
The problem is documented in the help.
Kind regards
Regina
--
Unsubscribe instructions: E-mail to users+help@libreoffice.org
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/www/users/
All messages sent to this list will be publicly archived and cannot be
deleted
--
Unsubscribe instructions: E-mail to users+help@libreoffice.org
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/www/users/
All messages sent to this list will be publicly archived and cannot be deleted
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.