I have a unit (MISPREV) which provides preview and printing.
Its USES clause is shown below.
uses
Windows, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
ExtCtrls, StdCtrls, Buttons, ComCtrls, Printers, PrintersDlgs;
The LPR file contains the following USES clause
uses
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}
Interfaces, // this includes the LCL widgetset
Forms, DPUnit, MISPrev, printer4lazarus
{ you can add units after this };
Every time I try to use the MISPREV unit in a new project,
despite reproducing the uses clauses exactly,
I am given the following error.
Fatal Unit PrintersDlgs searched but Printers found
I can't seem to unravel what is going wrong.
Can anyone help?