In my program I have the following API
Sorry to raise this subject again. But having finished the coding and rolling it out to the target machines I find the code fails with the following error " run-time error 453" Can't find dll entry point SetDefaultPrinterA in winspool drv." A search on Microsofts TechNet infers a syntax error but I can't see any problem with the code line.
The program works fine on my machine win2K but fails on the NT machines it's being installed to.
Can anyone help?
Thanks
Code:
Private Declare Function SetDefaultPrinter Lib "winspool.drv" Alias "SetDefaultPrinterA" (ByVal PrinterName As String) As Boolean
which is called within a loop by
SetDefaultPrinter (Y.DeviceName)
Sorry to raise this subject again. But having finished the coding and rolling it out to the target machines I find the code fails with the following error " run-time error 453" Can't find dll entry point SetDefaultPrinterA in winspool drv." A search on Microsofts TechNet infers a syntax error but I can't see any problem with the code line.
The program works fine on my machine win2K but fails on the NT machines it's being installed to.
Can anyone help?
Thanks