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+
------------------------------- Réponse au message : -------------------------------
> LoadLibrary(...); > voir MSDN et exemples deja publies. > BruNews, ciao... > > > ------------------------------- > Réponse au message : > ------------------------------- > > > MOLOCH > > > > > > Quel est la manière la plus simple de charger une dll en c? > > > > > > >
|