[問題] 如何取得LP_c_char_p 型態?

作者: druid0214 (Assassin)   2016-08-21 17:14:58
程式碼範例:http://www.pygame.org/wiki/GLSL_ARB_Example
一開始說59行 source = c_char_p(source)
TypeError: bytes or integer address expected instead of str instance
將c_char_p改成c_wchar_p
換61行glShaderSourceARB(shader, 1, byref(source), byref(length))
ctypes.ArgumentError: argument 3: <class 'TypeError'>:
expected LP_c_char_p instance instead of pointer to c_wchar_p
找不太到ctypes的文件

Links booklink

Contact Us: admin [ a t ] ucptt.com