bonjour, comme toujours, je m'écroule juste devant le verre à sangria .
je suis dans thunderbird, et je souhaite utiliser universal speech.
pour cela j'importe le module ctypes
(Components.utils.import("resource://gre/modules/ctypes.jsm");
puis j'ouvre la dll de  cette manière :
us =ctypes.open ("C:/UniversalSpeech/bin/UniversalSpeech.dll")
et c'est maintenant que je bloque parce que je dois faire une déclaration et je ne comprends pas trop les paramètres,. je vous fais un copié collé,, et si vous avez une idée,cela me dépannera, merci !
declare()
Declares an API from the native library, allowing it to be used from JavaScript. This can be used both for exported data symbols and for functions.
CData declare(
  name[,
  abi,
  returnType
  argType1,
  ...]
);
Parameters
name
The name of the symbol exported by the native library that is to be declared as usable from JavaScript
abi
The ABI used by the exported function; this will be ctypes.default_abi for most libraries, except for Windows libraries, which will be ctypes.winapi_abi or ctypes.stdcall_abi. See ABI constants. You don't need to provide this for exported data; it's only needed for function declarations.
returnType
The CType type returned by the defined API, if it's a function. This parameter should not be provided if the API is an exported data symbol.
argType1...argTypeN
Zero or more parameter CType may be specified for the parameters of the function being declared. These should not be provided if the API is an exported data symbol rather than a function.
Return value
A FunctionTypeCData object representing the declared API.
Exceptions thrown
• ctypes
• CType
• FunctionType
• ABI
TypeError
The return type was specified as an array.



source
https://developer.mozilla.org/en-US/docs/Mozilla/js-ctypes/js-ctypes_reference/Library

Progliste :
Pour se d�sinscrire de la liste : 
mailto:[email protected]?subject=unsubscribe

Pour voir les archives de la liste :
http://www.mail-archive.com/[email protected]/       

Je vous rappelle que les pi�ces jointe sont activ�s leur taille est limit� � 2 MO
Pour acc�der aux fichiers de la liste
http://outils.archive-host.com/partage.php?id=2Qar9Hy6ftzr
Ou en utilisant la nouvelle page de partage :
http://outils-n.archive-host.com/partage-fm0m7b947vglikp9Efpso94gt
Pour y ajouter des fichiers demandez-moi le ou sur la liste ou en priv�, je 
vous r�pondrez en priv�.
        
        

Répondre à