Solved

Changing the location of DLL

Posted on 2011-09-04
6
407 Views
Last Modified: 2012-05-12
Hi,
Everytime 1 create a new version of my applications, sometimes I forgot to copy the DLL files to the same directory where my executable files exist. Is there anyway to configure a fixed place where the DLL may exist with no issues. Is this configurable by the foxpro config file
Kind Regards
0
Comment
Question by:luciliacoelho
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 7

Expert Comment

by:OxygenITSolutions
ID: 36480076
Wouldn't you add the directory to the path statement?

RIght click on my computer, properties, advanced. This will vary depending on what version of windows you have but it will be under environment variables or similar.
0
 
LVL 42

Accepted Solution

by:
pcelba earned 500 total points
ID: 36480141
What DLLs are you talking about? FoxPro Run-time? Or some other DLLs required by your app?

You have several options:
1) Create some Release folder which will contain everything necessary for the application run and copy just the new EXE into this folder when you create the new version
2) Include DLLs into the project and copy them outside by the application itself
3) Create application Setup package which will contain all dependent files
0
 
LVL 42

Expert Comment

by:pcelba
ID: 36480142
The option 2) is, of course, not possible to apply to VFP Run-time DLLs.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:luciliacoelho
ID: 36480303
pcelba,
I enclose a file to desmonstrate which dll's i'm talking about.
My issue is not the location of the files but Foxpro requirement for the dlls to reside along in the same executable directory.
Kind regards,
Lucilia

dll-clarification-20110904.pdf
0
 
LVL 29

Expert Comment

by:Olaf Doschke
ID: 36480407
So you are tlking about the runtime DLLs of VFP. It's the best thing you can do, to copy these DLLs into your setup side-by-sie to your EXE. Bacause SP0, SP1 and SP2 runtimes of VFP9 are named the same, and installing the runtimes for all applications is hindering any application not using the same SP level of the runtime.

You can still opt for 1) and 3) of pavels suggestions and never again forget to copy the DLLs.

Bye, Olaf.
0
 
LVL 42

Expert Comment

by:pcelba
ID: 36480557
The folder from which you've created the picture is the "fixed place where the DLL may exist with no issues" except the SPx issue described by Olaf.

Thus the only safe place for your DLLs is the application folder where the EXE resides. And it is your responsibility to deliver all necessary files when installing on a new location... If you don't like setups then you may create a very small FoxPro program which will check the new app release completness.

BTW, if you are not able to ensure all files to be installed at the right place how could you ensure all instructions in your code are at the right place? :-) But I can imagine it is difficult task, so in such case you have to install each new release onto a clean PC and test it. It can even be the Virtual PC which is very easy to switch back into the clean state.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Microsoft Visual FoxPro (short VFP) is a programming language with it’s own IDE and database, ranking somewhat between Access and VB.NET + SQL Server (Express). Product Description: http://msdn.microsoft.com/en-us/vfoxpro/default.aspx (http://msd…
A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
Suggested Courses

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question