摘要:
Java 调用 C/C++1.创建一个类com.test.TestCall内容如下package com.test;public class TestCall {public native String getResponse(String request);}2.编译得到TestCall.class文件命令javah com.test.TestCall(如果不好使,前面执行一句set classpath=.)得到com_test_TestCall.h文件,内容如下/* DO NOT EDIT THIS FILE - it is machine generated */#include < 阅读全文