I am new to Python and using PyDev 2.71 in Eclipse Juno in Windows for the following example:
from ctypes import cdll
msvcrt = cdll.mscvrt
message_string = "test\n"
msvcrt.printf("Testing: %s", message_string)
However, it is generating the following error:
self._handle = _dlopen(self._name, mode)
WindowsError: [Error 126] The specified module could not be found
I added the interpreter in Eclipse prior to creating this PyDev module. What am I missing here?
Silly me, I had a typo.
It is cdll.msvcrt not cdll.mscvrt
It works now.