?
Solved

Changing the location of DLL

Posted on 2011-09-04
6
Medium Priority
?
410 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 2000 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
TCP/IP Network Protocol Cheat Sheet

TCP/IP is a set of network protocols which is best known for connecting the machines that make up the Internet. The truth is that TCP/IP is one of the oldest network protocols and its survival is mainly based on its simplicity and universality.

 

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 30

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

Independent Software Vendors: 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!

Question has a verified solution.

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

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…
Hey fellow admins! This time, I have a little fairy tale for you. As many tales do, it starts boring and then gets pretty gory. I hope you like it. TL;DR: It is about an important security matter, you should read it if you run or administer Windows …
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

764 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