[问题] 如何取得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