Commitd4c8981f by developer33

ReaderOpenEx updated, lib updated, debug files removed.

家长 e0551f04
... ... @@ -2538,17 +2538,36 @@ namespace mifare_plus_c_sharp
stringport_name=txtPortName.Text;
stringport_interface=txtPortInterface.Text;
stringarg=txtArg.Text;
UInt32reader_type_int=0,port_interface_int=0;
try{
UInt32reader_type_int=Convert.ToUInt32(reader_type);
UInt32port_interface_int=(UInt32)port_interface[0];
try
{
reader_type_int=Convert.ToUInt32(reader_type);
}
catch(Exceptionex)
{
MessageBox.Show("Invalid Advanced options parameter: Reader type");
txtReaderType.Focus();
return;
}
try
{
port_interface_int=(UInt32)port_interface[0];
}
catch(Exceptionex)
{
MessageBox.Show("Invalid Advanced options parameter: Port interface");
txtPortInterface.Focus();
return;
}
status=(UInt32)uFCoder.ReaderOpenEx(reader_type_int,port_name,port_interface_int,arg);
if(status>0)
{
txtStatus.Text="ReaderOpenEx was NOT successful.";
toolStripStatusLabel1.Text="Error: "+uFCoder.status2str((在这里.DL_STATUS)status);
//return;
return;
}else{
txtStatus.Text="ReaderOpenEx was successful. ";
... ... @@ -2559,11 +2578,7 @@ namespace mifare_plus_c_sharp
tmrCardReading.Start();
}
}
catch(Exceptioner)
{
MessageBox.Show("Invalid Advanced options parameters, please check your input and try again!");
}
}else
{
DL_STATUSstatus=0;
... ... @@ -2574,6 +2589,7 @@ namespace mifare_plus_c_sharp
{
txtStatus.Text="ReaderOpen was NOT successful.";
toolStripStatusLabel1.Text="Error: "+uFCoder.status2str((在这里.DL_STATUS)status);
return;
}else{
... ...
This source diff could not be displayed because it is too large. You canview the blobinstead.
xmlversion="1.0"encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntimeversion="v4.0"sku=".NETFramework,Version=v4.6.1"/>
startup>
configuration>
\ No newline at end of file
C:\Users\Projekat\Desktop\ VS_C # _Projects \ mifare_plus_c_sharp\mifare_plus_c_sharp\bin\Debug\mifare_plus_c_sharp.exe.config
C:\Users\Projekat\Desktop\ VS_C # _Projects \ mifare_plus_c_sharp\mifare_plus_c_sharp\bin\Debug\mifare_plus_c_sharp.exe
C:\Users\Projekat\Desktop\ VS_C # _Projects \ mifare_plus_c_sharp\mifare_plus_c_sharp\bin\Debug\mifare_plus_c_sharp.pdb
C:\Users\Projekat\Desktop\ VS_C # _Projects \ mifare_plus_c_sharp\mifare_plus_c_sharp\obj\Debug\mifare_plus_c_sharp.csprojAssemblyReference.cache
C:\Users\Projekat\Desktop\ VS_C # _Projects \ mifare_plus_c_sharp\mifare_plus_c_sharp\obj\Debug\mifare_plus_c_sharp.Form1.resources
C:\Users\Projekat\Desktop\ VS_C # _Projects \ mifare_plus_c_sharp\mifare_plus_c_sharp\obj\Debug\mifare_plus_c_sharp.Properties.Resources.resources
C:\Users\Projekat\Desktop\ VS_C # _Projects \ mifare_plus_c_sharp\mifare_plus_c_sharp\obj\Debug\mifare_plus_c_sharp.csproj.GenerateResource.cache
C:\Users\Projekat\Desktop\ VS_C # _Projects \ mifare_plus_c_sharp\mifare_plus_c_sharp\obj\Debug\mifare_plus_c_sharp.csproj.CoreCompileInputs.cache
C:\Users\Projekat\Desktop\ VS_C # _Projects \ mifare_plus_c_sharp\mifare_plus_c_sharp\obj\Debug\mifare_plus_c_sharp.exe
C:\Users\Projekat\Desktop\ VS_C # _Projects \ mifare_plus_c_sharp\mifare_plus_c_sharp\obj\Debug\mifare_plus_c_sharp.pdb
C:\Users\Projekat\Desktop\ VS_C # _Projects \ mifare_plus_c_sharp\mifare_plus_c_sharp\bin\Debug\mifare_plus_c_sharp.exe.CodeAnalysisLog.xml
C:\Users\Projekat\Desktop\ VS_C # _Projects \ mifare_plus_c_sharp\mifare_plus_c_sharp\bin\Debug\mifare_plus_c_sharp.exe.lastcodeanalysissucceeded
C:\Users\Projekat\Desktop\fix\ufr-mfp-examples-csharp-gui\mifare_plus_c_sharp\bin\Debug\mifare_plus_c_sharp.exe.config
C:\Users\Projekat\Desktop\fix\ufr-mfp-examples-csharp-gui\mifare_plus_c_sharp\bin\Debug\mifare_plus_c_sharp.exe
C:\Users\Projekat\Desktop\fix\ufr-mfp-examples-csharp-gui\mifare_plus_c_sharp\bin\Debug\mifare_plus_c_sharp.pdb
C:\Users\Projekat\Desktop\fix\ufr-mfp-examples-csharp-gui\mifare_plus_c_sharp\obj\Debug\mifare_plus_c_sharp.csprojAssemblyReference.cache
C:\Users\Projekat\Desktop\fix\ufr-mfp-examples-csharp-gui\mifare_plus_c_sharp\obj\Debug\mifare_plus_c_sharp.Form1.resources
C:\Users\Projekat\Desktop\fix\ufr-mfp-examples-csharp-gui\mifare_plus_c_sharp\obj\Debug\mifare_plus_c_sharp.Properties.Resources.resources
C:\Users\Projekat\Desktop\fix\ufr-mfp-examples-csharp-gui\mifare_plus_c_sharp\obj\Debug\mifare_plus_c_sharp.csproj.GenerateResource.cache
C:\Users\Projekat\Desktop\fix\ufr-mfp-examples-csharp-gui\mifare_plus_c_sharp\obj\Debug\mifare_plus_c_sharp.csproj.CoreCompileInputs.cache
C:\Users\Projekat\Desktop\fix\ufr-mfp-examples-csharp-gui\mifare_plus_c_sharp\obj\Debug\mifare_plus_c_sharp.exe
C:\Users\Projekat\Desktop\fix\ufr-mfp-examples-csharp-gui\mifare_plus_c_sharp\obj\Debug\mifare_plus_c_sharp.pdb
C:\Users\Projekat\Desktop\reader_open_ex\mifare_plus\ufr-mfp-examples-csharp-gui\mifare_plus_c_sharp\bin\Debug\mifare_plus_c_sharp.exe.config
C:\Users\Projekat\Desktop\reader_open_ex\mifare_plus\ufr-mfp-examples-csharp-gui\mifare_plus_c_sharp\bin\Debug\mifare_plus_c_sharp.exe
C:\Users\Projekat\Desktop\reader_open_ex\mifare_plus\ufr-mfp-examples-csharp-gui\mifare_plus_c_sharp\bin\Debug\mifare_plus_c_sharp.pdb
C:\Users\Projekat\Desktop\reader_open_ex\mifare_plus\ufr-mfp-examples-csharp-gui\mifare_plus_c_sharp\obj\Debug\mifare_plus_c_sharp.csprojAssemblyReference.cache
C:\Users\Projekat\Desktop\reader_open_ex\mifare_plus\ufr-mfp-examples-csharp-gui\mifare_plus_c_sharp\obj\Debug\mifare_plus_c_sharp.Form1.resources
C:\Users\Projekat\Desktop\reader_open_ex\mifare_plus\ufr-mfp-examples-csharp-gui\mifare_plus_c_sharp\obj\Debug\mifare_plus_c_sharp.Properties.Resources.resources
C:\Users\Projekat\Desktop\reader_open_ex\mifare_plus\ufr-mfp-examples-csharp-gui\mifare_plus_c_sharp\obj\Debug\mifare_plus_c_sharp.csproj.GenerateResource.cache
C:\Users\Projekat\Desktop\reader_open_ex\mifare_plus\ufr-mfp-examples-csharp-gui\mifare_plus_c_sharp\obj\Debug\mifare_plus_c_sharp.csproj.CoreCompileInputs.cache
C:\Users\Projekat\Desktop\reader_open_ex\mifare_plus\ufr-mfp-examples-csharp-gui\mifare_plus_c_sharp\obj\Debug\mifare_plus_c_sharp.exe
C:\Users\Projekat\Desktop\reader_open_ex\mifare_plus\ufr-mfp-examples-csharp-gui\mifare_plus_c_sharp\obj\Debug\mifare_plus_c_sharp.pdb
... ... @@ -28,3 +28,13 @@ C:\Users\Projekat\Desktop\reader_open_ex\mifare_plus\ufr-mfp-examples-csharp-gui
C:\Users\Projekat\Desktop\reader_open_ex\mifare_plus\ufr-mfp-examples-csharp-gui\mifare_plus_c_sharp\obj\Release\mifare_plus_c_sharp.csproj.CoreCompileInputs.cache
C:\Users\Projekat\Desktop\reader_open_ex\mifare_plus\ufr-mfp-examples-csharp-gui\mifare_plus_c_sharp\obj\Release\mifare_plus_c_sharp.exe
C:\Users\Projekat\Desktop\reader_open_ex\mifare_plus\ufr-mfp-examples-csharp-gui\mifare_plus_c_sharp\obj\Release\mifare_plus_c_sharp.pdb
C:\Users\Projekat\Desktop\ex_add\fix v2.0\ufr-mfp-examples-csharp-gui\mifare_plus_c_sharp\bin\Release\mifare_plus_c_sharp.exe.config
C:\Users\Projekat\Desktop\ex_add\fix v2.0\ufr-mfp-examples-csharp-gui\mifare_plus_c_sharp\bin\Release\mifare_plus_c_sharp.exe
C:\Users\Projekat\Desktop\ex_add\fix v2.0\ufr-mfp-examples-csharp-gui\mifare_plus_c_sharp\bin\Release\mifare_plus_c_sharp.pdb
C:\Users\Projekat\Desktop\ex_add\fix v2.0\ufr-mfp-examples-csharp-gui\mifare_plus_c_sharp\obj\Release\mifare_plus_c_sharp.csprojAssemblyReference.cache
C:\Users\Projekat\Desktop\ex_add\fix v2.0\ufr-mfp-examples-csharp-gui\mifare_plus_c_sharp\obj\Release\mifare_plus_c_sharp.Form1.resources
C:\Users\Projekat\Desktop\ex_add\fix v2.0\ufr-mfp-examples-csharp-gui\mifare_plus_c_sharp\obj\Release\mifare_plus_c_sharp.Properties.Resources.resources
C:\Users\Projekat\Desktop\ex_add\fix v2.0\ufr-mfp-examples-csharp-gui\mifare_plus_c_sharp\obj\Release\mifare_plus_c_sharp.csproj.GenerateResource.cache
C:\Users\Projekat\Desktop\ex_add\fix v2.0\ufr-mfp-examples-csharp-gui\mifare_plus_c_sharp\obj\Release\mifare_plus_c_sharp.csproj.CoreCompileInputs.cache
C:\Users\Projekat\Desktop\ex_add\fix v2.0\ufr-mfp-examples-csharp-gui\mifare_plus_c_sharp\obj\Release\mifare_plus_c_sharp.exe
C:\Users\Projekat\Desktop\ex_add\fix v2.0\ufr-mfp-examples-csharp-gui\mifare_plus_c_sharp\obj\Release\mifare_plus_c_sharp.pdb
... ... @@ -425,21 +425,21 @@ namespace uFR
[DllImport(DLL_NAME,CallingConvention=CallingConvention.StdCall,EntryPoint="ReaderOpen")]
publicstaticexternDL_STATUSReaderOpen();
[DllImport(DLL_NAME,CallingConvention=CallingConvention.StdCall,EntryPoint="ReaderOpenEx")]
privatestaticexternDL_STATUSReaderOpenEx(UInt32reader_type,[In]byte[]port_name,UInt32port_interface,[In]byte[]arg);
[DllImport(DLL_NAME,CallingConvention=CallingConvention.StdCall,EntryPoint="ReaderOpenEx")]
privatestaticexternDL_STATUSReaderOpenEx(UInt32reader_type,[In]byte[]port_name,UInt32port_interface,[In]byte[]arg);
publicstaticDL_STATUSReaderOpenEx(UInt32reader_type,stringport_name,UInt32port_interface,stringarg)
{
byte[]port_name_p=Encoding.ASCII.GetBytes(port_name);
byte[]port_name_param=newbyte[port_name_p.Length+1];
Array.Copy(port_name_p,0,port_name_param,0,port_name_p.Length);
port_name_param[port_name_p.Length]=0;
byte[]arg_p=Encoding.ASCII.GetBytes(arg);
byte[]arg_param=newbyte[arg_p.Length+1];
Array.Copy(arg_p,0,arg_param,0,arg_p.Length);
arg_param[arg_p.Length]=0;
{
byte[]port_name_p=Encoding.ASCII.GetBytes(port_name);
byte[]port_name_param=newbyte[port_name_p.Length+1];
Array.Copy(port_name_p,0,port_name_param,0,port_name_p.Length);
port_name_param[port_name_p.Length]=0;
byte[]arg_p=Encoding.ASCII.GetBytes(arg);
byte[]arg_param=newbyte[arg_p.Length+1];
Array.Copy(arg_p,0,arg_param,0,arg_p.Length);
arg_param[arg_p.Length]=0;
returnReaderOpenEx(reader_type,port_name_param,port_interface,arg_param);
}
... ...
ufr-lib@403adb9f
Subproject commit1bb26e641e5916a89010edb469dc5fa6fa94fa91
Subproject commit403adb9f6ec48479385c098d7ae98caa13bbb2d7
    Markdownis supported
    0%or
    You are about to add0peopleto the discussion. Proceed with caution.
    Finish editing this message first!
    Pleaseregisterorto comment
    Baidu
    map