restype is None( something about ctypes)

A

april122409

There are two functions in the dll, The C code in the dll both like this:
char * Login(char*host,int port,char* user, char *passwd,int loginSec)
{
return host
/*……*/
}

but when call the func, the result is different,
the func1 ,the type of the result is bytes;
the func2, the type of the result is None
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,780
Messages
2,569,608
Members
45,244
Latest member
cryptotaxsoftware12

Latest Threads

Top