it.comp.lang.python
  Home FAQ Contact Sign in
it.comp.lang.python only
 
Advanced search
May 2008
motuwethfrsasuw
   1234 18
567891011 19
12131415161718 20
19202122232425 21
262728293031  22
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
it.comp.lang.python Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  ctypes help         


Author: gianluca
Date: May 22, 2008 15:26

Ho un problema con l'uso di ctypes in windows piuttosto serio e non
riesco a venirne a capo. In linux non ho questo problema.
Ho compilato una libreria scritta in C e ho copiato la dll in c:
\windows\system32. Carico la dll con
"myDLL=cdll.LoadLibrary(find:library('myDLL.dll'))" e tutto sembra
andare a buon fine. Quando richiamo le mie funzioni con myDLL.myFunct
le uniche funzioni a cui posso accedere sono queste: "['_FuncPtr',
'__class__', '__delattr__', '__dict__', '__doc__', '__getattr__',
'__getattribute__', '__getitem__', '__hash__', '__init__',
'__module__', '__new__', '__reduce__', '__reduce_ex__', '__repr__',
'__setattr__', '__str__', '__weakref__', '_handle', '_name']" che non
c'entrano nulla con la mia dll. Provo anche con altre librerie e
quello che ottengo è sempre lo stesso risultato...
Show full article (1.00Kb)
6 Comments