Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to make EXE view DLLs in another folder?
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Installation, Setup and Configuration
Title:
How to make EXE view DLLs in another folder?
Miscellaneous
Thread ID:
01659187
Message ID:
01659187
Views:
66
Hi,

In my deployment of the VFP 9 application all necessary DLLs are placed/copied to the application folder. I am talking about these DLLs:
msvcp71.dll
msvcr71.dll
vfp9r.dll
vfp9renu.dll
vfp9t.dll

So the above files are in the folder
\\servername\appl_name\

So far so good.

But I need to run a small .exe in another folder (e.g. \\servername\appl_name\error_log). And, unless I copy the above DLLs to this folder, the EXE won't run.

I would prefer not to have to copy the same DLLs in various folders. So, my questions. Can I set the Path to the required DLLs into the config.fpw file? Or some other way to make the .EXE "look" in another folder for the DLLs?

TIA

UPDATE. I think I don't have to use config.fpw. I can use another text file where the Path will be stored. And in the small EXE app open and use this Path. I will try this.

UPDATE 2. Using my own configuration file where the Path is stored didn't work. The problem is that VFP 9 app does not even run to begin with. So, it cannot open and read configuration file. It has to be done differently. This is why I thought that config.fpw should provide the answer. But I don't know how to set Path in this file. Or if it is possible.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Next
Reply
Map
View

Click here to load this message in the networking platform