我很坏灬 2015-09-08 03:57 采纳率: 50%
浏览 1637

Java通过JNI调用第三方dll文件问题

因为我对C语言不熟悉,所以我不会在.cpp文件中实现Java生成头文件,**所以想请各位大侠帮我写一个.cpp文件**,下面是我用java生成的头文件:
/* DO NOT EDIT THIS FILE - it is machine generated /
#include
/
Header for class test_CustomerShowDll */

#ifndef _Included_test_CustomerShowDll
#define _Included_test_CustomerShowDll
#ifdef __cplusplus
extern "C" {
#endif
/*

  • Class: test_CustomerShowDll
  • Method: VC110_Init
  • Signature: ()Ljava/lang/Object; */ JNIEXPORT jobject JNICALL Java_test_CustomerShowDll_VC110_1Init (JNIEnv *, jobject);

/*

  • Class: test_CustomerShowDll
  • Method: VC110_Cls
  • Signature: ()Ljava/lang/Object; */ JNIEXPORT jobject JNICALL Java_test_CustomerShowDll_VC110_1Cls (JNIEnv *, jobject);

/*

  • Class: test_CustomerShowDll
  • Method: VC110_Display
  • Signature: (ILjava/lang/String;I)Ljava/lang/Object; */ JNIEXPORT jobject JNICALL Java_test_CustomerShowDll_VC110_1Display (JNIEnv *, jobject, jint, jstring, jint);

#ifdef __cplusplus
}
#endif
#endif
恳请各位大侠帮帮小弟,这对我来说很重要,跪谢!

  • 写回答

2条回答 默认 最新

  • oyljerry 2015-09-08 05:56
    关注

    主要是对比DLL的函数原型
    http://www.cnblogs.com/xiehy/p/3365682.html

    评论

报告相同问题?

悬赏问题

  • ¥100 关于使用MATLAB中copularnd函数的问题
  • ¥20 在虚拟机的pycharm上
  • ¥15 jupyterthemes 设置完毕后没有效果
  • ¥15 matlab图像高斯低通滤波
  • ¥15 针对曲面部件的制孔路径规划,大家有什么思路吗
  • ¥15 钢筋实图交点识别,机器视觉代码
  • ¥15 如何在Linux系统中,但是在window系统上idea里面可以正常运行?(相关搜索:jar包)
  • ¥50 400g qsfp 光模块iphy方案
  • ¥15 两块ADC0804用proteus仿真时,出现异常
  • ¥15 关于风控系统,如何去选择