![]() |
Populate a list with the available printers installed on the local machine
There are many occasions where we need to show to the user the list of available printers on the system to choose from and this can be done very easily in MFC with the help of following code snippet
Code: CPP
The reason behind this is we need to know how much bytes of data is needed and that can be retrieved only by Enumerating the printers with 4th Parameters as Null and 5th as 0 and so we just get the dwNeeded as the output parameter which helps us to allocate the buffer of correct size as Code:
lpPrinterInfo = new BYTE[dwNeeded]; |
Re: Populate a list with the available printers installed on the local machine
thanks for the last explanation of the enumeration of printers
|
| All times are GMT +5.5. The time now is 15:23. |