Menu

#8 Cannot compile on windows with Lazarus trunk 1.7

v1.0 (example)
closed-fixed
nobody
None
5
2016-04-05
2016-03-03
No

Fortes report cannot compile on Windows with Lazarus 1.7 (trunk), win32 widgetset.
rlprinters.pas(124,10) Error: Identifier not found "OpenPrinter"
- compiles with 1.6.
- compiles with 1.7 on Linux (gtk2 ws)

So it seems to be windows only problem with Lazarus from trunk.
Actually, function OpenPrinter is commented out in unit WinUtilPrn. I do not know why, perhaps it should it be reported to Lazarus bug tracker?

Discussion

  • Zoran Vučenović

    See this post - http://forum.lazarus.freepascal.org/index.php/topic,31745.msg205940.html#msg205940
    It says OpenPrinter should be changed with OpenPrinterW
    Still, I wander why it is disabled in WinUtilPrn. Should OpenPrinter remain there, but point to OpenPrinterW instead of OpenPrinterA?

     
  • Luiz Camara

    Luiz Camara - 2016-04-02

    Fixed inrepository

     
  • Luiz Camara

    Luiz Camara - 2016-04-02
    • status: open --> closed-fixed
     
  • Zoran Vučenović

    Luiz,
    You decided to declare OpenPrinter as a wrapper to ANSI Windows API function OpenPrinterA.
    However, I believe that it would be better to use unicode API instead.
    So, please see this patch which uses this approach. What do you think?

     

Log in to post a comment.