moloko2000
Messages postés16Date d'inscriptionmardi 5 août 2003StatutMembreDernière intervention26 août 2003
-
5 août 2003 à 14:11
HCJarod
Messages postés221Date d'inscriptionmardi 12 août 2003StatutMembreDernière intervention11 décembre 2008
-
12 août 2003 à 16:18
MOLOCH
Quel est la manière la plus simple de charger une dll en c?
HCJarod
Messages postés221Date d'inscriptionmardi 12 août 2003StatutMembreDernière intervention11 décembre 20081 12 août 2003 à 16:18
Essai avec import, je te file le copier coller de l'aide de Borland C++...
import "DLL_Name" {functionPrototypes}
DLL_Name: The name of the DLL you wish to use. The path can be included if necessary.
functionPrototypes: Each external function must be prototyped according to general C++ prototype conventions. DLL calls use the data type keywords char, short, int, unsigned, long, bool, void and const.
Makes functions contained in external DLLs available to cScript.
Unlike normal cScript functions, variable numbers of arguments are not supported when using functions from DLLs. You can pass int arguments for enums, and long for pointers, since cScript does not support these types. There is no support for passing structs.
cScript supports the calling conventions, __cdecl, __pascal, and __stdcall.
Merci d'avance et a+