Malgré des heures de recherche, je reste bloqué sur la compréhension et l utilisation de dll.
(quand utiliser dllstructcreate ....)
Celle que je veux utiliser est TUTIL32.DLL qui sert a la vérification et la réparation de table paradox.
Pour commence, est ce que quelqu un peut m aider a convertir ce code ....ce serait un bon debut
--------------------------------------------------------------------------------
Syntax
DBIResult DBIFN TUInit(phTUSes hTUSession);
Description
Loads TUTIL32.DLL and initializes it for use.
Parameters
phTUSes hTUSession (Output)
Session handle for the TUtility session.
Returns
DBIERR_NONE on success; A BDE error on failure.
Error Codes
Error messages associated with the error codes returned by the functions in the TUtility API, such as TUVerifyTable or TURebuildTable. Error strings are placed in the szErrorTable when an error occurs.
------------------------------------------------------------------------------
Syntax
DBIResult DBIFN TUVerifyTable(hTUSes hTUSession, char far *pszTableName, char far *pszDriverType, char far *pszErrTableName, char far *pszPassword, int iOptions, unsigned int far *piErrorLevel);
Description
Checks a table for errors.
Parameters
hTUSes hTUSession (Input)
Handle of an initialized TUtility session.
char far * pszTableName (Input)
Name of the table to be verified.
char far * pszDriverType (Input)
Driver type; "PARADOX" is the only supported driver.
char far * pszErrTableName (Input)
Table to hold errors encountered by TUtility (" __TUERR.DB").
char far * pszPassword (Input)
The table's master password.
int iOptions (Input)
Type of verification to be performed.
unsigned int far * piErrorLevel (Output)
Level of an error triggered by this function.
Returns
DBIERR_NONE on success; A BDE error on failure.
Usage
When a table is verified as invalid, the return code of the function is set to DBIERR_NONE, the piErrorLevel parameter is set to a value other than 0, and the pszErrTableName table is created containing the error information. This table must be accessed to determine the problem with the table (see error codes).
The error table, pszErrTableName, is created in the same directory as the application which called the TUVerifyTable function. An absolute path must be passed in order to create the table in a different directory. Using the private directory (retrieve this using DbiGetSesInfo) is recommended.
Si cela peut aider je peux poster le source complet d un programme en C++ utilisant cette dll
Je veux pas te dégoûter, mais ce que tu nous donne, c'est pas du code, mais une description de script en C ^^
Donc en fait, je vois pas trop le rapport avec AutoIt la... tu peux expliquer mieux que ça, stp ?
Bonne chance !
Habibsbib.
PS: tu n'as pas posté dans la bonne partie, poste dans la partie "Aide pour les DLL avec AutoIt, je crois que ca correspond mieux à ton problème