Author Topic: compile the hfs2.3e's source code,but I failed,Help me,SOS!!!  (Read 1538 times)

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
  • Insane programmer
  • *
  • Posts: 12844
    • View Profile
Re: compile the hfs2.3e's source code,but I failed,Help me,SOS!!!
« Reply #1 on: May 18, 2015, 05:07:11 AM »
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

Offline Mars

  • Operator
  • Insane poster
  • *****
  • Posts: 1818
    • View Profile
Re: compile the hfs2.3e's source code,but I failed,Help me,SOS!!!
« Reply #2 on: May 18, 2015, 10:17:42 AM »

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
FRENCH MEMBER : Si vous comprenez la langue française,  n'hésitez pas à l'utiliser pour une meilleure aide de ma part