Oct-16-2017, 04:57 PM
Hello everyone.
I have just begun to program in Python. I have done several scripts and now I am trying to call the Windows API with Ctypes module.
I have copied the example code of the web (docs.python.org\ctypes) but it doesn't run.
It shows the following error:
I have test others similar examples in Inet, but allways the same error.
I have the 2.7 Python version in Windows 10 .
Have someone any suggestion?.
Thanks a lot.
Regards,
Ric
I have just begun to program in Python. I have done several scripts and now I am trying to call the Windows API with Ctypes module.
I have copied the example code of the web (docs.python.org\ctypes) but it doesn't run.
1 2 |
from ctypes import * print windll.kernel32 |
Error:"NameError: name 'windll' is not defined"
I have tried with:- other DLL (kernel32; msvcrt,...)
- especify the path (Windows\System32; Windows\SysWOW64)
- windll, cdll, oledll and dll
I have test others similar examples in Inet, but allways the same error.
I have the 2.7 Python version in Windows 10 .
Have someone any suggestion?.
Thanks a lot.
Regards,
Ric