LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

enumerating printers

Solved!
Go to solution

Hi,

 

I am trying to enumerate windows printers with EnumPrinters function that is included in winspool.h. The compilation ends without errors, but I receive a link error:

 

error: Undefined symbol '_EnumPrintersA@28   referenced in "my_prorgam_name.obj"

 

Suggestions will be appreciated

 

0 Kudos
Message 1 of 3
(1,663 Views)
Solution
Accepted by topic author esh51

Hi

 

You have to include the library file associated with  winspool.h.  I guess it is winspool.lib, but you find what lib to include in the documentation.

Message 2 of 3
(1,646 Views)
Solution
Accepted by topic author esh51

thank you, I shall try

0 Kudos
Message 3 of 3
(1,634 Views)