ImageWriter can be compiled in two ways:
build.batThis script automatically compiles both projects:
ImageWriter.exe- base versionImageWriterPro.exe- enhanced version with network share support
Open ImageWriter.dpr or ImageWriterPro.dpr in Delphi 7 IDE.
Important: Configuration files are required for IDE compilation, which are already created in the project root:
Project Settings (.dof files):
ImageWriter.dof- settings for ImageWriter.dpr (used by IDE)ImageWriterPro.dof- settings for ImageWriterPro.dpr (used by IDE)
Command-Line Parameters (.cfg files):
ImageWriter.cfg- configuration for compilation via DCC32ImageWriterPro.cfg- configuration for compilation via DCC32
These files contain:
- Module search paths (
-U,-O,-I,-R) - Compiler definitions (
-dZLIB_USE_DLL,-dIMAGEWRITER_PRO) - Compiler parameters (optimization, debugging, etc.)
.cfg files are configured with the following module search paths:
src
src\studio
src\studio\md5
src\studio\sha256
src\studio\random
ZLIB_USE_DLL- use zlib1.dll instead of static linkingIMAGEWRITER_PRO- activates Pro version features (only in ImageWriterPro.cfg)
- Close Delphi 7 IDE if it is open
- Ensure that
ImageWriter.dofandImageWriterPro.doffiles exist in the project root - Reopen the project - IDE will automatically read the .dof file
- Check paths in Project β Options β Directories/Conditionals:
- Search path should contain:
src;src\studio;src\studio\md5;src\studio\sha256;src\studio\random - Conditionals should contain:
ZLIB_USE_DLL(andIMAGEWRITER_PROfor Pro version)
- Search path should contain:
Ensure that ImageWriter.cfg or ImageWriterPro.cfg file exists in the project root.
Check paths in .cfg files - they must be relative to the project root.
Ensure that the path to DCC32.EXE in build.bat is correct:
SET DCC32="C:\Program Files (x86)\Borland\Delphi7\Bin\DCC32.EXE".doffiles - used by Delphi 7 IDE to store project settings (paths, definitions, version).cfgfiles - used by DCC32 compiler for command-line compilationbuild.batpasses parameters via command line and also uses.cfgfiles- DCU files are created in module directories during compilation
- When first opening a project in IDE - Delphi 7 automatically reads the .dof file and applies settings
- After changing paths in
build.bat, you need to update the corresponding.cfgand.doffiles
ImageWriter/
βββ ImageWriter.dpr # Main project
βββ ImageWriter.dof # IDE settings for ImageWriter
βββ ImageWriter.cfg # Compiler parameters for ImageWriter
βββ ImageWriterPro.dpr # Pro project
βββ ImageWriterPro.dof # IDE settings for ImageWriterPro
βββ ImageWriterPro.cfg # Compiler parameters for ImageWriterPro
βββ build.bat # Build script