Re: déclaration de variable pour une dll
Posté par jolindien le 12/1/2005 20:54:34
Je sais aps si c'est du delphi ou pas. en fait je veux calculer le discID d'un cd audio pour avoir acces à freedb.org
J'ai une DLL avec les fonctions suivante et les déclarations de variables à faire(cf premier message). Je ne savais pas comment on déclarait les variable. maintenant, je vais pouvoir essayer de passer des paramètre pour comment marche ces fonctions.
Merci pour votrez aide.
voici les fonctions contenue dans la DLL:
AspiInstalled
The AspiInstalled function checks if the Aspi drivers are correctly installed.
function AspiInstalled: Integer;
Return Values
If the function succeeds, the return value is the number of hosts installed in the system.
If the function fails, the return value is -1.
CalcDiscID
The CalcDiscID calculates the DiscID from the TOC (Table of Contents).
function CalcDiscID(CdToc: TCdToc): Cardinal;
Parameters
CdToc
Return Values
The return value is the DiscID.
GetCdRomDrives
The GetCdRomDrives scans for Cd-Rom installed on the system and retrieves informations over the Cd-Rom drive.
function GetCdRomDrives(var CdRoms: TCdRoms): Boolean;
Parameters
CdRoms
Return Values
If the function succeeds, the return value is TRUE.
If the function fails, the return value is FALSE.
ReadCdToc
The ReadCdToc read the TOC from a spedified Cd-Rom drive.
function ReadCdTOC(CdRom: TCdRom; var Toc: TCdToc): Boolean;
Parameters
CdRom
Toc
Return Values
If the function succeeds, the return value is TRUE.
If the function fails, the return value is FALSE.
Cette contribution était de : http://old.wdforge.org/newbb/viewtopic.php?forum=12&topic_id=1658&post_id=6903