Thank you. With the VfW.PAs found in SysRec, no more error with WommDlg.
Code in my old VfW unit :
uses
Windows,
MMSystem,
Messages,
CommDlg,
ActiveX,
Dialogs;
Code in the SysRec VfW unit :
uses
{$IFNDEF FPC}
CommDlg,
ActiveX, {Ole2}
Dialogs,
{$ENDIF}
Windows,
MMSystem,
Messages;