[SOLVED] FPC 2.4.4 cannot compile fortes324forlaz lazarus / 5-Lazarus Extra Components ---------------------------------------------------------------------- JD · 2011-06-17 16:58 When I try to compile fortes324forlaz, I get 3 errors rlprinters.pas(125,56) Error: Incompatible type for arg no. 2: Got "LongWord", expected "PHANDLE" rlprinters.pas(128,44) Error: Incompatible type for arg no. 5: Got "LongWord", expected "PDWord" rlprinters.pas(133,58) Error: Incompatible type for arg no. 5: Got "LongWord", expected "PDWord" on the following lines in rlprinters.pas Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i if not OpenPrinter(PChar(PrinterDevice.Name),hPrinter,@foodefs) then  Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i GetPrinter(hPrinter,2,nil,0,bytesNeeded)  Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i GetPrinter(hPrinter,2,pInfo,bytesNeeded,bytesNeeded)  It compiled without problems in version 2.4.3 which afaik is almost the same as 2.4.4. ---------------------------------------------------------------------- JanRoza · 2011-06-17 17:29 Are you using Lazarus 0.9.31 or 0.9.30? I'm running 0.9.30.1 with FPC 2.4.4 and FortesReport compiled without a problem. I do know that Fortesreport didn't compile under Lazarus 0.9.31, Im not sure FortesReport is 0.9.31 ready yet, I thought Luiz recently mentioned it was strictly for Lazarus 0.9.30 for now. (Am I correct Luiz?) ---------------------------------------------------------------------- Zoran · 2011-06-17 19:40 Quote from: JanRoza on June 17, 2011, 07:29:59 pmIm not sure FortesReport is 0.9.31 ready yet, I thought Luiz recently mentioned it was strictly for Lazarus 0.9.30 for now. (Am I correct Luiz?) No, if you are using stable Lazaruns 0.9.30, then you must use last release of fortes: http://sourceforge.net/projects/fortes4lazarus/file s/fortesreport-3.24-LCL-R2.zip/download But if you are using Lazarus from trunk, then you must use Fortes from trunk: https://fortes4lazarus.svn.sourceforge.net/svnroot/fortes4lazarus/trun k/ Jan, don't you remember? ---------------------------------------------------------------------- JD · 2011-06-18 07:51 Sorry I forgot to say that I'm using 0.9.31. I'll update my version of Fortes from trunk & try again. Many thanks guys! ---------------------------------------------------------------------- JD · 2011-06-18 08:12 It's fine now, thanks a lot. ---------------------------------------------------------------------- JanRoza · 2011-06-18 19:18 @Zoran: I hadn't forgotten but yesterday I couldn't find the old thread anywhere. For now I'running Lazarus 0.9.30.1/FPC 244 which suites my needs perfectly. Thanks for giving me back my memory