PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

  • Error codes
  • Files compressed with the earlier WINDEV versions
  • Operating mode in Windows Vista (and later)
  • Progress bar
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Decompresses a file that was compressed by fCompress.
Versions 18 and later
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Universal Windows 10 App This function is now available in Windows Store apps mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
// Decompress a file
ResDecompress = fUncompress("C:\MyDirectories\CompressedFile.txt", ...
"C:\MyDirectories\DecompressedFile.txt")
Syntax
<Result> = fUncompress(<Path of File to Decompress> [, <Path of Decompressed File>])
<Result>: Integer
  • 0 if the decompression was performed,
  • an error code (value greater than 0) otherwise. The message corresponding to the error code is returned by ErrorInfo associated with the errMessage constant.
<Path of File to Decompress>: Character string (with quotes)
Name and full (or relative) path of file to decompress (up to 260 characters). A UNC path can be used. This file must have been compressed by fCompress.
<Path of Decompressed File>: Optional character string (with quotes)
The following cases are supported:
  • To decompressed a file under a given name and in a given directory:
    Name and full (or relative) path of the decompressed file (up to 260 characters). A UNC path can be used.
  • To decompressed a file under a its initial name (before compression) and in a given directory:
    Directory (string ending with "\" or ":") of the decompressed file (up to 260 characters). A UNC path can be used.
  • If this parameter is not specified:
    The file is decompressed under its name and in its source directory (before compression). Caution: The source directory must exist.
Remarks

Error codes

The following error codes are returned:
  • 1: The file to decompress cannot be opened.
  • 2: Unable to create the decompressed file. This error occurs:
    • <Path of File to Decompress> and <Path of Decompressed File> are identical,
    • if the directory of <Path of Decompressed File> does not exist.
  • 3: The file to decompress was not compressed by fCompress.
  • 4: The file cannot be decompressed: the file is copied.
  • 6: The decompress operation was canceled by the user: fStopCompress was not run.
  • 7: Insufficient space to create the decompressed file.
The message corresponding to the error code is returned by ErrorInfo associated with the errMessage constant.

Files compressed with the earlier WINDEV versions

fUncompress can be used to decompress files compressed with the earlier versions of WINDEV and WEBDEV.
WINDEVWEBDEV - Server codeReports and QueriesUser code (UMC)

Operating mode in Windows Vista (and later)

If this function does not operate properly in Windows Vista (and later), check whether the file used is not found in one of the system directories (Windows directory or "Program Files" directory).
Indeed, in Windows Vista (and later), with the UAC mechanism (User Account Control) enabled, you must have the administrator privileges to handle and/or modify the files found in the system directories (Windows directory or "Program Files" directory).
Programming tip: To handle and/or modify the files without having administrator privileges, you should:
  • avoid writing into the Windows directory or into the "Program Files" directory,
  • use the system directory corresponding to the application (returned by SysDir associated with the srCommonAppData constant).
Note: In Windows Vista (and later), the virtualization mechanism is used to make the applications compatible with Vista. If the file is created in a system directory without having sufficient rights, this file will actually be created in another directory (C:\Users\<LOGIN>AppData\Local\VirtualStore\Windows\). In this case, the file cannot be shared between several applications.
WINDEVReports and QueriesUser code (UMC)

Progress bar

In Windows, to view the progress of file decompression, an event must be branched on CompressGauge (1174). When this message is received, the _EVE.wParam variable contains the percentage of file decompression.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230std.dll
Linux wd230std.so
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment