python - define a const char* in cython -
python - define a const char* in cython -
i want phone call next function dll in python ctypes:
int pi_enumerateusb (char* szbuffer, int ibuffersize, const char* szfilter) which variable have define const char* szfilter? tried following:
ch_szfilter = c_char_p("c-863") p_ch_szfilter = address(ch_szfilter) here p_ch_stfilter should const char* szfilter doesn't work. next error message:
valueerror: procedure called not plenty arguments (12 bytes missing) or wrong calling convention i don't have much experience python it's first project ctypes.
python c++ pointers ctypes
Comments
Post a Comment