Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GetDefaultPrinter Problem
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01131682
Message ID:
01131684
Views:
13
The GetDefaultPrinter()/SetDefaultPrinter() are unsupported under Windows 95/98/Me. See http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/prntspol_0hma.asp

>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
>
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform