I noticed, that the function GetPrinters() defined in xHarbour is not working anymore with fwh 1109. It returns an undefined value.
This small sample shows the error.
- Code: Select all Expand view
- #include "Fivewin.ch"
procedure Main ()
LOCAL aPrn, cPrn
aPrn := GetPrinters ()
cPrn := GetDefaultPrinter ()
? Valtype (aPrn), Valtype (cPrn), cPrn
RETURN
I found that these functions are replaced (?) in the file legacycp.c. But I don´t really understand, what happens in this file. I think, GetPrinters () is replaced with Win_PrinterList(), but this is one of the unresolved externals we had to define as dummy functions. What is this file for ?
Fact is, that it kills the functions GetPrinters() and GetDefaultPrinter() and others defined in xHarbour.
Antonio, could you please review this issue ? I´m using these function very often.