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

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -