restype is None( something about ctypes)

april122409 at gmail.com april122409 at gmail.com
Sat Nov 30 00:47:55 EST 2013


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



More information about the Python-list mailing list