Problem with calling function from dll

deepblu at deepblu at
Thu Dec 13 08:40:08 CET 2012

I have problem with using function from dll.

import ctypes

b = ctypes.windll.LoadLibrary("kernel32")

a = ""


But I got exception:

Traceback (most recent call last):
  File "<pyshell#323>", line 1, in <module>
WindowsError: exception: access violation reading 0x00000014

Even when I write:
a = ctypes.c_char_p('.' * 20)
I got the same result.

Here I found this function description:;id=15;

Please help.

More information about the Python-list mailing list