Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DECLARE ... DLL troubles
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00185945
Message ID:
00186308
Views:
22
>Whenever I try to declare the win32 function AddPrinterDriver, I get the following error: "Cannot find entry point AddPrinterDriver in the DLL." This also happens for EnumPrinterDrivers.
>
>The exact command line I'm using is as follows:
>DECLARE LONG AddPrinterDriver in win32api
>
>I realize that there are no parameters in this declaration, but when I add them in the same error occurs.

That's because it's not in one of the default .DLLs search by the Win32API catchall. Under Win9x, it's in SPOOLSS.DLL:

DECLARE INTEGER AddPrinterDriver IN SPOOLSS.DLL ;
STRING @ lpName, ;
INTEGER Level, ;
STRING @ lpDriverInfo
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform