Comment charger une dll en c ?

moloko2000 Messages postés 16 Date d'inscription mardi 5 août 2003 Statut Membre Dernière intervention 26 août 2003 - 5 août 2003 à 14:11
HCJarod Messages postés 221 Date d'inscription mardi 12 août 2003 Statut Membre Dernière intervention 11 décembre 2008 - 12 août 2003 à 16:18
MOLOCH

Quel est la manière la plus simple de charger une dll en c?

2 réponses

BruNews Messages postés 21040 Date d'inscription jeudi 23 janvier 2003 Statut Modérateur Dernière intervention 21 août 2019
5 août 2003 à 14:26
LoadLibrary(...);
voir MSDN et exemples deja publies.
BruNews, ciao...
0
HCJarod Messages postés 221 Date d'inscription mardi 12 août 2003 Statut Membre Dernière intervention 11 décembre 2008 1
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+
0
Rejoignez-nous