新增C# CONSOLE测试DLL功能.

This commit is contained in:
TAO Cheng
2014-05-15 15:40:00 +08:00
parent 58b492b6fb
commit e59a15b060
12 changed files with 318 additions and 5 deletions
@@ -30,13 +30,13 @@ extern "C" EXP_IMP SSI_STATUS_MOTION Machine_Startup(bool bOfflineOnly,EHOME_MAC
{
m_pSO7_Proto=new CSO7_Proto();
}
rStatus=m_pSO7_Proto->Load_So7_Config();
rStatus=m_pSO7_Proto->Init_SO7Usb();
if (rStatus==SSI_STATUS_MOTION_NORMAL)
{
rStatus=m_pSO7_Proto->Init_SO7Usb();
m_pSO7_Proto->_start_machine();
if (rStatus==SSI_STATUS_MOTION_NORMAL)
{
m_pSO7_Proto->_start_machine();
rStatus=m_pSO7_Proto->Load_So7_Config();
rStatus=LoadMotionParameter();
if (rStatus==SSI_STATUS_MOTION_NORMAL)
{
@@ -59,7 +59,9 @@
</Link>
<PostBuildEvent>
<Command>xcopy "$(OutDir)\MachineInterfaceDll.dll" ..\Debug\MachineInterface\*.* /D /F /Y
xcopy "$(OutDir)\MachineInterfaceDll.lib" ..\Debug\MachineInterface\*.* /D /F /Y</Command>
xcopy "$(OutDir)\MachineInterfaceDll.lib" ..\Debug\MachineInterface\*.* /D /F /Y
xcopy "$(OutDir)\MachineInterfaceDll.dll" ..\ConsoleTestDll\bin\Debug\*.* /D /F /Y
xcopy "$(OutDir)\MachineInterfaceDll.lib" ..\ConsoleTestDll\bin\Debug\*.* /D /F /Y</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
@@ -79,6 +81,10 @@ xcopy "$(OutDir)\MachineInterfaceDll.lib" ..\Debug\MachineInterface\*.* /D /F /Y
<OptimizeReferences>true</OptimizeReferences>
<AdditionalDependencies>..\..\..\..\..\..\..\ThirdParty\UsbSupport\LibUsb_Win\Lib\Msvc\libusb.lib</AdditionalDependencies>
</Link>
<PostBuildEvent>
<Command>xcopy "$(OutDir)\MachineInterfaceDll.dll" ..\ConsoleTestDll\bin\Release\*.* /D /F /Y
xcopy "$(OutDir)\MachineInterfaceDll.lib" ..\ConsoleTestDll\bin\Release\*.* /D /F /Y</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemGroup>
<None Include="ReadMe.txt" />
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<LocalDebuggerCommand>..\Debug\MachineInterface\HoleEdgeInspect.exe</LocalDebuggerCommand>
<LocalDebuggerCommand>..\ConsoleTestDll\bin\Debug\ConsoleTestDll.exe</LocalDebuggerCommand>
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
</PropertyGroup>
</Project>