Bienvenu(e)! Identification Créer un nouveau profil

Recherche avancée

fichier mcHID.dll

Envoyé par demhabel 
fichier mcHID.dll
mardi 5 juin 2007 18:38:06
j'ai tléléchargé tous le projet de la caret HID et je vous remerci infiniment de cet efort.
Ma question et comment munir mon programme du fichier mcHID.dll?
J'ai mis la mchid.dll dans le meme repertoire du projet mais il n'a pas marché.
MERCI.

Re: fichier mcHID.dll
mardi 5 juin 2007 20:16:54
Salut,

Tu programmes en quel langage??


Tu dois au sein de ton programme, comme c'est montré dans l'exemple déclarer la fonction et lui dire quelle est présente dans la libraire mcHID.dll, ça ne suffit pas de la mettre dans le répertoire...

Si tu regardes le logiciel easyHID dont est extraite la dll, il te généres des programmes d'exemple en Delphi, VB ou C++... tu devrais trouver la syntaxte que tu dois utiliser pour ta déclaration

A+
Re: fichier mcHID.dll
samedi 9 juin 2007 11:29:32
Bonjours,
Merci de votre reponce .
Je travail avec Delphy et avec la partie informatique que vous proposez sur votre site ou avec celle generée par easy HID.J'ai lu les fichier de l'aplication j'ai trouvé que vous faite apel a cette DLL dans le fichier cUSBINTERFACE par la syntaxe:
const
// the plugin manager DLL name...
DLL_NAME = 'mcHID.dll';

// DLL interface functions...
function Connect(pHostWin:HWND):BOOL;stdcall;external DLL_NAME name 'Connect';
function Disconnect:BOOL;stdcall;external DLL_NAME name 'Disconnect';
function GetItem(pIndex:UINT):UINT;stdcall;external DLL_NAME name 'GetItem';
function GetItemCount:UINT;stdcall;external DLL_NAME name 'GetItemCount';
function Read(pHandle:UINT;pData:pointer):BOOL;stdcall;external DLL_NAME name 'Read';
function Write(pHandle:UINT;pData:pointer):BOOL;stdcall;external DLL_NAME name 'Write';
function ReadEx(pVendorID,pProductID:UINT;pData:pointer):BOOL;stdcall;external DLL_NAME name 'ReadEx';
function WriteEx(pVendorID,pProductID:UINT;pData:pointer):BOOL;stdcall;external DLL_NAME name 'WriteEx';

function GetHandle(pVendorID,pProductID:UINT):UINT;stdcall;external DLL_NAME name 'GetHandle';
function GetVendorID(pHandle:UINT):UINT;stdcall;external DLL_NAME name 'GetVendorID';
function GetProductID(pHandle:UINT):UINT;stdcall;external DLL_NAME name 'GetProductID';
function GetVersion(pHandle:UINT):UINT;stdcall;external DLL_NAME name 'GetVersion';
function GetVendorName(pHandle:UINT;pText:LPSTR;pLen:UINT):UINT;stdcall;external DLL_NAME name 'GetVendorName';
function GetProductName(pHandle:UINT;pText:LPSTR;pLen:UINT):UINT;stdcall;external DLL_NAME name 'GetProductName';
function GetSerialNumber(pHandle:UINT;pText:LPSTR;pLen:UINT):UINT;stdcall;external DLL_NAME name 'GetSerialNumber';
function GetInputReportLength(pHandle:UINT):UINT;stdcall;external DLL_NAME name 'GetInputReportLength';
function GetOutputReportLength(pHandle:UINT):UINT;stdcall;external DLL_NAME name 'GetOutputReportLength';

procedure SetReadNotify(pHandle:UINT;pValue:BOOL);stdcall;external DLL_NAME name 'SetReadNotify';
function IsReadNotifyEnabled(pHandle:UINT):BOOL;stdcall;external DLL_NAME name 'IsReadNotifyEnabled';

function IsAvailable(pVendorID,pProductID:UINT):BOOL;stdcall;external DLL_NAME name 'IsAvailable';

implementation

end.
Seuls les utilisateurs enregistrés peuvent poster des messages dans ce forum.

Cliquez ici pour vous connecter