cavon
Messages postés1Date d'inscriptionmardi 15 janvier 2002StatutMembreDernière intervention16 janvier 2002
-
16 janv. 2002 à 09:00
cs_Crazyht
Messages postés1522Date d'inscriptionmardi 18 décembre 2001StatutMembreDernière intervention21 août 2010
-
16 janv. 2002 à 10:30
J'aimerais pouvoir gérer mon carnet d'addresse netscape messenger via VB et je n'arrive pas à utiliser L'API.
Quelqu'un peut-il me traduire les déclarations suivante en déclaration VB?
This call will import an LDIF formatted file from a disk file to the address book specified by the addrBook parameter. Return Value: NAB_SUCCESS - The import operation succeeded. NAB_FAILURE - General failure to during the import operation NAB_NOT_OPEN - This will be returned when a call is made to the API without NAB_Open() being called first. NAB_PERMISSION_DENIED - User does not have write permission to the address book or to read the import disk file NAB_DISK_FULL - Disk full condition encountered attempting to import the address book NAB_INVALID_ABOOK - Address book specified is invalid NAB_FILE_NOT_FOUND - The disk file was not found NAB_INVALID_CONNID - Invalid connection ID Parameters: id - the connection ID returned by the NAB_Open() call addrBook - a pointer to a NABAddrBookDescType structure for the particular address book for the operation fileName - the disk file name for the import operation deleteFileWhenFinished - if this is true, the temp file will be deleted upon exit.
Si quelqu'un est capable de gérer les fichier LDIF avec VB je suis aussi super intéressé.
Merci d'avance.
cs_Crazyht
Messages postés1522Date d'inscriptionmardi 18 décembre 2001StatutMembreDernière intervention21 août 20108 16 janv. 2002 à 10:30
Voilaa je pense que c'est ça :
Declare function NAB_Open Lib "NAB32api.dll" (id as NABConnectionID, majorVerNumer as integer, minorVerNumber as integer, byval requestedProfileName as string, actualProfileName as string) as NABError
Declare function NAB_ImportLDIFFile Lib "NAB32api.dll" (id as NABConnectionID, addrBook as NABAddrBookDescType, fileName as string, deleteFileWhenFinished as NABBool) as NABError
Il ne te reste plus qu'a declaré les types utilisateur :
+ NABBool ( surement 1 Boolean ou Integer )
+ NABAddrBookDescType ( ???? )
+ NABConnectionID ( surement un long )
+ NABError (surement un Integer ou Long )
et declaré les constantes qui peuvent etre utiles.