Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ERROR 453 cant find DLL entry point

Status
Not open for further replies.

ordy2

Programmer
Sep 21, 2002
6
0
0
GB
In my program I have the following API

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)


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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top