rejetto forum

compile the hfs2.3e's source code,but I failed,Help me,SOS!!!

0 Members and 1 Guest are viewing this topic.

Offline lxstruggle

  • Occasional poster
  • *
    • Posts: 1
    • View Profile
  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

Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
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

Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2059
    • View Profile

it's also possible to insert or replace the identifiers by their actual values in traylib.pas

  NIIF_NONE       = $00000000;
  NIIF_INFO       = $00000001;
  NIIF_WARNING    = $00000002;
  NIIF_ERROR      = $00000003;
  NIIF_ICON_MASK  = $0000000F;

extracted from ShellAPI.pas