>The code below works fine under Xp but gives an error under 98. Error 1754 - Cannot find entry point "name" in the DLL
>
>Declare GetDefaultPrinter In winspool.drv String @ cPrtName, Integer @ nBuffLength
>cPrtName = Space(255)
>If GetDefaultPrinter(@cPrtName, Len(cPrtName)) = .T.
> lcPrinter = Substr(cPrtName, 1, Len(Alltrim(cPrtName)) - 1)
>Endif
>
From MSDN Help:
Windows 95/98/Me: Unsupported.
Why not use:
SET([PRINTER],2) && Default Windows Printer name
SET([PRINTER],3) && Default VFP Printer name
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.