| |

VerySource

 Forgot password?
 Register
Search
View: 1107|Reply: 2

Ask questions about production installation, setting path?

[Copy link]

3

Threads

4

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-3-2 17:30:01
| Show all posts |Read mode
I wrote the code in the default C:\Program Files\Microsoft Visual Studio\Vfp98\warehouse directory in VFP6.0.When I want to publish and install, I am always prompted that a certain form cannot be found.The process of writing code is using relative paths (do form warehouse\forms\main and so on) ), I also read the question about how to set the VFP on the FAQ, but I still don't know how to do it. I said that using a third-party installation and installation tool WISE is easy to use. Copy the two files that come with that VFP so that it can run without VFP. Can you specifically say one step? Thank you :-)
Reply

Use magic Report

0

Threads

32

Posts

23.00

Credits

Newbie

Rank: 1

Credits
23.00

 China

Post time: 2020-5-13 00:00:01
| Show all posts
About the path:

Add code at the beginning of your main program:

*method one:
**********************
PUBLIC LCNowpath
LCNowpath = JUSTPATH ​​(SYS (16,1)) + '\'
set default to (LCNowpath)&&Set the default working directory
**********************

*Method Two:
**********************
PUBLIC LCNowpath
LCNowpath = SYS (5) + SYS (2003) + "\"
set default to (LCNowpath)&&Set the default working directory
**********************

* Method three:
**********************
PUBLIC LCSys16, LCNowpath
LCSys16 = SYS (16)&&Get the full path of the current program, including the name of the currently running program.
LCNowpath = LEFT (LCsys16, RAT ("\", LCSys16,1))&&Get the working directory where the currently running program is located.
set default to (LCNowpath)&&Set the default working directory
**********************
Reply

Use magic Report

0

Threads

32

Posts

23.00

Credits

Newbie

Rank: 1

Credits
23.00

 China

Post time: 2020-5-13 11:45:02
| Show all posts
In this way, your program can be used in any directory.


Regarding running away from the VFP environment, you only need to package the runtime file of the corresponding version of VFP with your program.

When packaging, it can be installed in the system directory (System32) or in the same directory as your program.

VFP6 runtime library: vfp6r.dll, vfp6rchs.dll, gdiplus.dll (VFP6RUN.EXE, VFP6R.DLL, VFP6RENU.DLL)
VFP7 runtime library: msvcr70.dll, vfp7r.dll, vfp7rchs.dll, gdiplus.dll, vfp7renu.dll
VFP8 runtime library: msvcr70.dll, vfp8r.dll, vfp8rchs.dll, gdiplus.dll

VFP9 runtime library: msvcr71.dll, vfp9r.dll, vfp9rchs.dll, gdiplus.dll
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list