我把问题缩小一点范围,请问
int test(int dd, struct in_addr sub_ip_addr, char* sub_name, long* total_bytes, datetime* starttime)
这个接口中 char* sub_name 这个我在java里定义成String 的 在C的接口中怎么转化呢我只知道在接口中要写 jstring sub_name 可是要怎么转化呢
const char *theStr;
theStr=(*env)->GetStringUTFChars(env,name ,0);
这样编译就报错,不知道什么原因阿
int test(int dd, struct in_addr sub_ip_addr, char* sub_name, long* total_bytes, datetime* starttime)
这个接口中 char* sub_name 这个我在java里定义成String 的 在C的接口中怎么转化呢我只知道在接口中要写 jstring sub_name 可是要怎么转化呢
const char *theStr;
theStr=(*env)->GetStringUTFChars(env,name ,0);
这样编译就报错,不知道什么原因阿
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货