rejetto forum
Software => HFS ~ HTTP File Server => Programmers corner => Topic started by: lxstruggle on May 03, 2015, 12:42:29 PM
-
I compile the hfs2.3e's source code with Delphi 7, All the library are Configured, Include ICS v7 ,GIFimage ,delphi zlib v1.2.3 ,TRegExpr and fastMM v4
But I compiled the code ,there are some promblem is appended ,I can't resolved it ,Help ME!
[Error] traylib.pas(32): Undeclared identifier: 'NIIF_NONE'
[Error] traylib.pas(33): Undeclared identifier: 'NIIF_INFO'
[Error] traylib.pas(34): Undeclared identifier: 'NIIF_WARNING'
[Error] traylib.pas(35): Undeclared identifier: 'NIIF_ERROR'
...
the attachment is jpg ,show the detail error
-
sorry for the late reply.
apparently Delphi 7 doesn't have such constants. I've been using Turbo Delphi, that's 4 years younger.
If you google for those, you will find the stuff you need to workaround the problem
https://www.google.com/search?q=NIIF_WARNING&oq=NIIF_WARNING&ie=UTF-8#q=%22NIIF_WARNING%22+delphi
-
it's also possible to insert or replace the identifiers by their actual values in traylib.pas
{$EXTERNALSYM NIIF_NONE}
NIIF_NONE = $00000000;
{$EXTERNALSYM NIIF_INFO}
NIIF_INFO = $00000001;
{$EXTERNALSYM NIIF_WARNING}
NIIF_WARNING = $00000002;
{$EXTERNALSYM NIIF_ERROR}
NIIF_ERROR = $00000003;
{$EXTERNALSYM NIIF_ICON_MASK}
NIIF_ICON_MASK = $0000000F;
extracted from ShellAPI.pas