This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Dan.O'Donovan
Recipients Dan.O'Donovan, docs@python
Date 2014-07-02.09:14:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1404292489.9.0.647841786316.issue21903@psf.upfronthosting.co.za>
In-reply-to
Content
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 python3 documentation) - it always produces an error

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ctypes.ArgumentError: argument 2: <class 'TypeError'>: wrong type

I apologise for not attaching a fix, I have tried and cannot find one.
History
Date User Action Args
2014-07-02 09:14:49Dan.O'Donovansetrecipients: + Dan.O'Donovan, docs@python
2014-07-02 09:14:49Dan.O'Donovansetmessageid: <1404292489.9.0.647841786316.issue21903@psf.upfronthosting.co.za>
2014-07-02 09:14:49Dan.O'Donovanlinkissue21903 messages
2014-07-02 09:14:49Dan.O'Donovancreate