发信人: wwwyyf (wwwyyf), 信区: Java 标 题: [求助]请高手帮忙看一下,为啥java调用dll,总是返回false,在as 发信站: 水木社区 (Tue Feb 27 17:29:55 2018), 站内 /** * */ package testtest; import com.sun.jna.Library; import com.sun.jna.Memory; import com.sun.jna.Native; import com.sun.jna.ptr.ByteByReference; /** * @author Administrator * * * c#中厂家给出的样例代码中这样引入动态链接库的。 [STAThread] [DllImport("sms.dll", EntryPoint = "Sms_Connection")] public static extern uint Sms_Connection(string CopyRight, uint Com_Port, uint Com_BaudRate, out string Mobile_Type, out string CopyRightToCOM); [DllImport("sms.dll", EntryPoint = "Sms_Disconnection")] public static extern uint Sms_Disconnection(); [DllImport("sms.dll", EntryPoint = "Sms_Send")] public static extern uint Sms_Send(string Sms_TelNum, string Sms_Text); * * */ public class yyf { public yyf() { // TODO Auto-generated constructor stub } public interface JNATestDll extends Library{ JNATestDll instanc