exe
Retrieving VFP runtime DLL name required by EXE or DLL
VFP stores in an EXE/DLL information about what runtime DLL is required to run it.
| This is sample code. Add error handling and adjust to your requirements as necessary. |
? VfpVersionFromExeOrDll("C:\Program Files\My Company\MyVfpApplication.exe") ? VfpVersionFromExeOrDll("X:\Somefolder\MyVfpDll.dll")
* VfpVersionFromExeOrDll.PRG FUNCTION VfpVersionFromExeOrDll LPARAMETERS tcExeDllName LOCAL lcSig, lnHandle, lcVersion, lcBuffer, lnPos, lcSigMT lnHandle = FOPEN(tcExeDllName, 0) IF lnHandle < 0 ? FERROR() RETURN "Unable to Open file + '" + tcExeDllName + "'" ENDIF
How to pass parameters to VFP EXE
Passing command-line parameters from Windows to VFP created EXE is different from passing parameters to VFP programs or functions in VFP application:
- All parameters are passed to EXE as strings
- Parameters should not be enclosed in single quotes because quotes will be treated as part of parameter
- Parameters with spaces can be enclosed in double quotes
- Parameters are separated by spaces not commas
Recent comments
12 hours 32 min ago
1 day 19 hours ago
1 day 19 hours ago
2 days 15 hours ago
2 days 22 hours ago
4 days 6 hours ago
4 days 22 hours ago
5 days 11 hours ago
1 week 1 day ago
2 weeks 5 days ago