Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to pass an array by reference to DeviceCapabilities API?
Message
From
29/03/2000 07:38:14
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
How to pass an array by reference to DeviceCapabilities API?
Miscellaneous
Thread ID:
00351940
Message ID:
00351940
Views:
75
We have the following situation: our program needs to set another printer as the default printer, with a particular user defined paper. Then, we came back to the original default printer. We maneged to do it in a Win95 environment. Now, we're changing to WinNT workstations, with both Win95 and WinNT spoolers. What happens?? The program is not getting the default paper size.

We're trying to use the DeviceCapabilities API (winspool.drv) to determine with papers are available form a printer driver, and after this we must set the correct paper size.

But... To use this API, we need to send an array by reference! How can we do it in FOX?

PS. Is there any difference between using the DECLARE statement and the old Regfn32 in FoxTools.fll? It works only with the second one.
Next
Reply
Map
View

Click here to load this message in the networking platform