Hi! Help please!
I have to run this code:

from ctypes.wintypes import LPCSTR, LPSTR, DWORD
dwErrorMessageSize = DWORD(200)
lpstrErrorMessage = LPCSTR(b'\000' * dwErrorMessageSize.value)

but it fails with error:
  TypeError: expected char pointer, got bytes

This code works well in CPython.
How can I run it in IronPython or how to create char pointer?

Thank you,
Denis Kolodin
_______________________________________________
Ironpython-users mailing list
Ironpython-users@python.org
http://mail.python.org/mailman/listinfo/ironpython-users

Reply via email to