Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DECLARE ... DLL troubles
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00185945
Message ID:
00186308
Vues:
21
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform