Dan O'Donovan added the comment:
Ok, this fail is happening because we're using python3 unicode strings to call
the ANSI MessageBoxA function. A possible fix;
Encode strings before passing the MessageBoxA (ctypes.txt.diff attached)
Alternatively, calls could be made to the unicode M
Dan O'Donovan added the comment:
Additional note, this code snippet does work in python 2. There is a note that
all snippets are tested with 'doctest' so I have added the 'tests' tag to this
ticket.
--
components: +Tests
New submission from Dan O'Donovan:
There is an example in the ctypes python3 documentation for producing a native
Windows MessageBoxA
https://docs.python.org/3.3/library/ctypes.html#ctypes.PYFUNCTYPE
Try as I might, I cannot get this example to run under python 3 (it is in the
py