Kaneda Shotaro
Messages postés48Date d'inscriptiondimanche 14 août 2005StatutMembreDernière intervention12 septembre 2009
-
2 mai 2006 à 16:26
Lutinore
Messages postés3246Date d'inscriptionlundi 25 avril 2005StatutMembreDernière intervention27 octobre 2012
-
2 mai 2006 à 18:21
Bonjour !
Je cherche comment charger une DLL dynamiquement et récuprérer l'adresse d'une fonction contenue dans celle-ci. En Delphi ça donne ça :
TInitPlugin = procedure; stdcall;var fHandle: THandle; fInit: TInitPlugin;begin fHandle :LoadLibrary(PChar(Filename)); if fHandle 0 then // Gestion de l'exception... fInit := GetProcAddress(fHandle, 'InitPlugin'); if @fInit = nil then // Gestion de l'exceptionend;
Comment traduire ça en C# ? Je programme sous Visual C# 2005 Express. Merci.