添加库
This commit is contained in:
@@ -79,7 +79,7 @@
|
||||
</Compile>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="sc.cs" />
|
||||
<Compile Include="LNCAPI.cs" />
|
||||
<EmbeddedResource Include="FormMain.resx">
|
||||
<DependentUpon>FormMain.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
@@ -106,5 +106,10 @@
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="libs\scif2_bcb.dll">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
@@ -325,13 +325,7 @@ namespace FalitPrint
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
using (File.Create(PrintSet))
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
if (File.Exists(data))
|
||||
{
|
||||
using (FileStream fs = new FileStream(result + "\\data.txt", FileMode.Open, FileAccess.Read))
|
||||
|
||||
@@ -127,7 +127,7 @@ namespace FalitPrint
|
||||
public uint MemSizeCounter;
|
||||
}
|
||||
|
||||
private const string ReCON_DLL_NAME = "scif2_bcb.dll";
|
||||
private const string ReCON_DLL_NAME = "libs\\scif2_bcb.dll";
|
||||
|
||||
public const uint MAX_SYNC_COUNT = 10u;
|
||||
|
||||
@@ -495,295 +495,295 @@ namespace FalitPrint
|
||||
|
||||
public const sbyte SC_DIRECT = 1;
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int MainProcess();
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int LibraryInitial(ref DLL_USE_SETTING pUseSetting, int MakerID, string EncString);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern void LibraryDestroy();
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern void LibrarySetDebug(int level);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int GetLibraryMsg(int id);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int GetConnectionMsg(int TgrConn, int MsgID);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern void GetConnectionError(int TgrConn, ref ERROR_MSG Msg);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int LocalDetectControllers();
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int LocalReadControllerCount();
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int LocalReadController(int Index, ref LOCAL_CONTROLLER_INFO Info);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int ConnectSetPwd(int TgrConn, string Pwd);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int ConnectLocalList(int TgrConn, int Index);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int ConnectLocalIP(int TgrConn, string IP);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int Disconnect(int TgrConn);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int FtpSetConnection(int TgrConn);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int FtpGetFileList(int Folder, string SubFolder, string HeadFilter, string TailFilter);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int FtpReadFileCount();
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int FtpReadFile(int Index, ref FTP_FILE file);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int FtpMakeDir(int Folder, string DirName);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int FtpUploadFile(int Folder, string SubFolder, string Filename, string LocalFilename);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int FtpDownloadFile(int Folder, string SubFolder, string Filename, string LocalFilename);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int FtpDeleteFile(int Folder, string SubFolder, string Filename);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int FtpTransferFileReset();
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int FtpTransferFileAdd(int Folder, string SubFolder, string Filename, string LocalFilename);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int FtpUploadFiles();
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int FtpDownloadFiles();
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int FtpDeleteFiles2();
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int FtpCheckDone();
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int FtpWaitDone(int MaxWaitTime);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int LocalGetFileList(string Path, string HeadFilter, string TailFilter);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int LocalReadFileCount();
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int LocalReadFile(int Index, ref FTP_FILE file);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int LocalDeleteFile(int Index);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int memI(int TgrConn, int addr);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int memO(int TgrConn, int addr);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int memC(int TgrConn, int addr);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int memS(int TgrConn, int addr);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int memA(int TgrConn, int addr);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int memR(int TgrConn, int addr);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int memRBit(int TgrConn, int addr, int BitIdx);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int memRString(int TgrConn, int addr, int RSize, byte[] Buf);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern double memF(int TgrConn, int addr);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int memSetO(int TgrConn, int addr, char val);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int memSetC(int TgrConn, int addr, char val);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int memSetS(int TgrConn, int addr, char val);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int memSetA(int TgrConn, int addr, char val);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int memSetR(int TgrConn, int addr, int val);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int memSetRBit(int TgrConn, int addr, int BitIdx, int val);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int memSetRString(int TgrConn, int addr, int RSize, string Buf);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int memSetF(int TgrConn, int addr, double val);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int GetTranState(int pTran);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern IntPtr GetDataPointer(int TranPointer);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern void LClearQueue(int TgrConn);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern void LReadBegin(int TgrConn);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int LReadNI(int TgrConn, int addr, int num);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int LReadNO(int TgrConn, int addr, int num);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int LReadNC(int TgrConn, int addr, int num);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int LReadNS(int TgrConn, int addr, int num);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int LReadNA(int TgrConn, int addr, int num);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int LReadNR(int TgrConn, int addr, int num);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int LReadNF(int TgrConn, int addr, int num);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int LReadEnd(int TgrConn);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern void LWriteBegin(int TgrConn);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int LWriteNO(int TgrConn, int addr, int num);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int LWriteNC(int TgrConn, int addr, int num);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int LWriteNS(int TgrConn, int addr, int num);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int LWriteNA(int TgrConn, int addr, int num);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int LWriteNR(int TgrConn, int addr, int num);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int LWriteNF(int TgrConn, int addr, int num);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int LWriteEnd(int TgrConn);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern void DClearQueue(int TgrConn);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int DWaitDone(int TgrConn, int MaxWaitTime);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern void DReadBegin(int TgrConn);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int DReadNI(int TgrConn, int addr, int num);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int DReadNO(int TgrConn, int addr, int num);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int DReadNC(int TgrConn, int addr, int num);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int DReadNS(int TgrConn, int addr, int num);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int DReadNA(int TgrConn, int addr, int num);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int DReadNR(int TgrConn, int addr, int num);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int DReadNF(int TgrConn, int addr, int num);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int DReadEnd(int TgrConn);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern void DWriteBegin(int TgrConn);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int DWrite1O(int TgrConn, int addr, int val);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int DWrite1C(int TgrConn, int addr, int val);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int DWrite1S(int TgrConn, int addr, int val);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int DWrite1A(int TgrConn, int addr, int val);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int DWrite1R(int TgrConn, int addr, int val);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int DWrite1F(int TgrConn, int addr, double val);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int DWrite1RBit(int TgrConn, int addr, int BitIdx, int BitValue);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int DWriteRString(int TgrConn, int addr, int BufSize, string Buf);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int DWriteNO(int TgrConn, int addr, int num, int[] data);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int DWriteNC(int TgrConn, int addr, int num, int[] data);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int DWriteNS(int TgrConn, int addr, int num, int[] data);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int DWriteNA(int TgrConn, int addr, int num, int[] data);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int DWriteNR(int TgrConn, int addr, int num, int[] data);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int DWriteNF(int TgrConn, int addr, int num, double[] data);
|
||||
|
||||
[DllImport("scif2_bcb.dll")]
|
||||
[DllImport(ReCON_DLL_NAME)]
|
||||
public static extern int DWriteEnd(int TgrConn);
|
||||
}
|
||||
}
|
||||
BIN
FalitPrint/libs/scif2_bcb.dll
Normal file
BIN
FalitPrint/libs/scif2_bcb.dll
Normal file
Binary file not shown.
Reference in New Issue
Block a user