2014-12-22 240 views
0

我需要从我的Java应用程序调用C DLL(mycppdll.dll)。JNA函数调用C DLL

​​

我有一个C程序调用像这样这样的功能:

char param1[256] = ""; 
char param2[256] = ""; 
char param3[256] = ""; 
char param4[256] = ""; 
char param5[256] = ""; 
int param6; 
int param7; 
int param8[32]; 
ret = SomeFunction(param1,param2,param3,param4,param5, &param6, &param7, &param8[0]); 

,它是完全正常工作。

在我的java程序char *我使用PointerByReference和int *作为IntegerByReference。 我不知道我应该使用最后一个参数。

我试过传递整数数组第0索引的指针,整数数组第0索引的指针PointerByReference,int,IntByReference。

他们都没有工作。我越来越

"java.lang.UnsatisfiedLinkError: Error looking up function 'SomeFunction': The specified procedure could not be found."

请帮忙。在此先感谢

回答

0

SomeFunction似乎不是DLL的一部分(或者它可能没有相同的参数)