當前位置:編程學習大全網 - 網站源碼 - java如何調用C#封裝好的DLL文件中的rf_init打開串口方法?

java如何調用C#封裝好的DLL文件中的rf_init打開串口方法?

這是每個DLL的方法[DllImport("RfReader.dll")] //打開串口public extern static int rf_init(Int32 icdev, long baudrate);[DllImport("RfReader.dll")]//關閉串口public extern static int rf_exit(Int32 icdev);[DllImport("CrcDasCard30.dll")]//獲取Licence.das文件public static extern int GetLicInfo(byte[] CommPassword, byte[] userPassword, byte[] SysCardNo, ref structM.str_sec_Used_Info UsedInfo);[DllImport("RfReader.dll")]//翁鳴public static extern int rf_beep(Int32 icdev,Int32 MSec);[DllImport("CRCDASCard30.dll")]//讀卡public extern static int GetBasicInfo(Int32 icdev,ref structM.basic_Info basic_Info,ref Int32 CardID);[DllImport("CRCDASCard30.dll", EntryPoint = "ReclaimCard")]//回收public extern static int reclaimcard(Int32 icdev, string userpassword, bool beepenable, ref string result, Int32 cardtype);[DllImport("CRCDASCard30.dll")]//發卡擺脫了,好人做到底吧!!!!

  • 上一篇:多元線性回歸模型中ols斜率估計的抽樣方差公式
  • 下一篇:在閱讀夏宇聞老師翻譯的壹本verilog的書中,解釋壹些語法用到下面圖片裏的符號,求大神解釋。
  • copyright 2024編程學習大全網