Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GetDefaultPrinter Problem
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
GetDefaultPrinter Problem
Miscellaneous
Thread ID:
01131682
Message ID:
01131682
Views:
70
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
Regards, Jitendra Shahani
Korect Business
Next
Reply
Map
View

Click here to load this message in the networking platform