- Update Center for Microsoft SQL Server
- Font and Icons too small when RDP from Windows 10 into Windows 7
- One problem, one weekend, eight languages
- How to retrive Outlook default signature
- How to completely uninstall VFP 9.0
- Retrieving VFP runtime DLL name required by EXE or DLL
- Send email via MSN email account
- Send email via Yahoo mail account
- Remove Structural CDX or Memo flag from a table
- Deleting pages from PDF file through Acrobat automation
dll
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")
Obtaining DLL-specific version information
Most Windows Shell and common controls DLLs implement DllGetVersion function. It allows applications to obtain DLL-specific version information to make sure that required functionality in a DLL is implemented.
The Windows API support class is used to handle Windows API structures.
$SAMPLECODE$
#DEFINE DLLVER_PLATFORM_WINDOWS 1
#DEFINE DLLVER_PLATFORM_NT 2
Adler32 Checksum
Adler32 is different from CRC32. It's much faster but a little bit less reliable.
The free ZLIB.DLL from http://www.zlib.net/ has a function to calculate Adler32.
$SAMPLECODE$
DECLARE Long adler32 IN Zlib Long Adler32, String Buffer, Long BuffLen
* Initialize Adler32 and calculate 1st checksum
lnAdler32 = adler32(0, Null, 0)
lcText = "Adler32 checksum"
lnAdler32 = adler32(lnAdler32, lcText, LEN(lcText))
? TRANSFORM(lnAdler32, "@0")

Recent comments