add flycapture
This commit is contained in:
@@ -0,0 +1,154 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
|
||||
<PropertyGroup>
|
||||
<FC2Version>2.12.3.2</FC2Version>
|
||||
<FC2InformationalVersion>2.12.3.201801090091</FC2InformationalVersion>
|
||||
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>8.0.50727</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{20E47E10-8F4D-47A7-8E5D-9DDE69F71C66}</ProjectGuid>
|
||||
<OutputType>Exe</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>BusEventsEx_CSharp</RootNamespace>
|
||||
<AssemblyName>BusEventsEx_CSharp</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<FileUpgradeFlags>
|
||||
</FileUpgradeFlags>
|
||||
<OldToolsVersion>2.0</OldToolsVersion>
|
||||
<UpgradeBackupLocation />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>bin\x86\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
|
||||
<OutputPath>bin\x86\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>bin\x64\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' ">
|
||||
<OutputPath>bin\x64\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<Choose>
|
||||
<When Condition=" ('$(Configuration)|$(Platform)' == 'Release|AnyCPU' And Exists('..\..\bin') And !Exists('..\..\bin64')) Or ('$(Configuration)|$(Platform)' == 'Release|x86' And Exists('..\..\bin')) ">
|
||||
<ItemGroup>
|
||||
<Reference Include="FlyCapture2Managed, Version=$(FC2Version), Culture=neutral, processorArchitecture=x86">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\bin\FlyCapture2Managed_v100.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
</When>
|
||||
<When Condition=" ('$(Configuration)|$(Platform)' == 'Debug|AnyCPU' And Exists('..\..\bin') And !Exists('..\..\bin64')) Or ('$(Configuration)|$(Platform)' == 'Debug|x86' And Exists('..\..\bin')) ">
|
||||
<ItemGroup>
|
||||
<Reference Include="FlyCapture2Managed, Version=$(FC2Version), Culture=neutral, processorArchitecture=x86">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\bin\FlyCapture2Managedd_v100.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
</When>
|
||||
<When Condition=" ('$(Configuration)|$(Platform)' == 'Release|AnyCPU' And Exists('..\..\bin64')) Or ('$(Configuration)|$(Platform)' == 'Release|x64' And Exists('..\..\bin64')) ">
|
||||
<ItemGroup>
|
||||
<Reference Include="FlyCapture2Managed, Version=$(FC2Version), Culture=neutral, processorArchitecture=AMD64">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\bin64\FlyCapture2Managed_v100.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
</When>
|
||||
<When Condition=" ('$(Configuration)|$(Platform)' == 'Debug|AnyCPU' And Exists('..\..\bin64')) Or ('$(Configuration)|$(Platform)' == 'Debug|x64' And Exists('..\..\bin64')) ">
|
||||
<ItemGroup>
|
||||
<Reference Include="FlyCapture2Managed, Version=$(FC2Version), Culture=neutral, processorArchitecture=AMD64">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\bin64\FlyCapture2Managedd_v100.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
</When>
|
||||
</Choose>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="app.config" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
<PropertyGroup>
|
||||
<PostBuildEvent>
|
||||
IF $(Platform)==x86 (
|
||||
copy "$(ProjectDir)..\..\bin\libiomp5md.dll" "$(TargetDir)"
|
||||
IF $(ConfigurationName)==Debug (
|
||||
copy "$(TargetDir)$(TargetFileName)" "$(ProjectDir)..\..\bin\$(TargetName)d$(TargetExt)"
|
||||
copy "$(ProjectDir)..\..\bin\FlyCapture2d_v100.dll" "$(TargetDir)"
|
||||
) ELSE (
|
||||
copy "$(TargetDir)$(TargetFileName)" "$(ProjectDir)..\..\bin\$(TargetFileName)"
|
||||
copy "$(ProjectDir)..\..\bin\FlyCapture2_v100.dll" "$(TargetDir)"
|
||||
)
|
||||
) ELSE IF $(Platform)==x64 (
|
||||
copy "$(ProjectDir)..\..\bin64\libiomp5md.dll" "$(TargetDir)"
|
||||
IF $(ConfigurationName)==Debug (
|
||||
copy "$(TargetDir)$(TargetFileName)" "$(ProjectDir)..\..\bin64\$(TargetName)d$(TargetExt)"
|
||||
copy "$(ProjectDir)..\..\bin64\FlyCapture2d_v100.dll" "$(TargetDir)"
|
||||
) ELSE (
|
||||
copy "$(TargetDir)$(TargetFileName)" "$(ProjectDir)..\..\bin64\$(TargetFileName)"
|
||||
copy "$(ProjectDir)..\..\bin64\FlyCapture2_v100.dll" "$(TargetDir)"
|
||||
)
|
||||
)
|
||||
</PostBuildEvent>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,32 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 11.00
|
||||
# Visual Studio 2010
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BusEventsEx_CSharp_2010", "BusEventsEx_CSharp_2010.csproj", "{20E47E10-8F4D-47A7-8E5D-9DDE69F71C66}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Debug|x64 = Debug|x64
|
||||
Debug|x86 = Debug|x86
|
||||
Release|Any CPU = Release|Any CPU
|
||||
Release|x64 = Release|x64
|
||||
Release|x86 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{20E47E10-8F4D-47A7-8E5D-9DDE69F71C66}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{20E47E10-8F4D-47A7-8E5D-9DDE69F71C66}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{20E47E10-8F4D-47A7-8E5D-9DDE69F71C66}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{20E47E10-8F4D-47A7-8E5D-9DDE69F71C66}.Debug|x64.Build.0 = Debug|x64
|
||||
{20E47E10-8F4D-47A7-8E5D-9DDE69F71C66}.Debug|x86.ActiveCfg = Debug|x86
|
||||
{20E47E10-8F4D-47A7-8E5D-9DDE69F71C66}.Debug|x86.Build.0 = Debug|x86
|
||||
{20E47E10-8F4D-47A7-8E5D-9DDE69F71C66}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{20E47E10-8F4D-47A7-8E5D-9DDE69F71C66}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{20E47E10-8F4D-47A7-8E5D-9DDE69F71C66}.Release|x64.ActiveCfg = Release|x64
|
||||
{20E47E10-8F4D-47A7-8E5D-9DDE69F71C66}.Release|x64.Build.0 = Release|x64
|
||||
{20E47E10-8F4D-47A7-8E5D-9DDE69F71C66}.Release|x86.ActiveCfg = Release|x86
|
||||
{20E47E10-8F4D-47A7-8E5D-9DDE69F71C66}.Release|x86.Build.0 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
@@ -0,0 +1,131 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{E1D8229B-CDBC-E3F0-361D-DE432220CE72}</ProjectGuid>
|
||||
<OutputType>Exe</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>BusEventsEx_CSharp</RootNamespace>
|
||||
<AssemblyName>BusEventsEx_CSharp</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<BaseIntermediateOutputPath>$(PlatformToolset)\x86\Debug\</BaseIntermediateOutputPath>
|
||||
<IntermediateOutputPath>$(BaseIntermediateOutputPath)</IntermediateOutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin64\Debug\</OutputPath>
|
||||
<BaseIntermediateOutputPath>$(PlatformToolset)\x64\Debug\</BaseIntermediateOutputPath>
|
||||
<IntermediateOutputPath>$(BaseIntermediateOutputPath)</IntermediateOutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<BaseIntermediateOutputPath>$(PlatformToolset)\x86\Release\</BaseIntermediateOutputPath>
|
||||
<IntermediateOutputPath>$(BaseIntermediateOutputPath)</IntermediateOutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' ">
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin64\Release\</OutputPath>
|
||||
<BaseIntermediateOutputPath>$(PlatformToolset)\x64\Release\</BaseIntermediateOutputPath>
|
||||
<IntermediateOutputPath>$(BaseIntermediateOutputPath)</IntermediateOutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<Choose>
|
||||
<When Condition=" ('$(Configuration)|$(Platform)' == 'Release|AnyCPU' And Exists('..\..\bin') And !Exists('..\..\bin64')) Or ('$(Configuration)|$(Platform)' == 'Release|x86' And Exists('..\..\bin')) ">
|
||||
<ItemGroup>
|
||||
<Reference Include="FlyCapture2Managed_v120">
|
||||
<HintPath>..\..\bin\vs2013\FlyCapture2Managed_v120.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
</When>
|
||||
<When Condition=" ('$(Configuration)|$(Platform)' == 'Debug|AnyCPU' And Exists('..\..\bin') And !Exists('..\..\bin64')) Or ('$(Configuration)|$(Platform)' == 'Debug|x86' And Exists('..\..\bin')) ">
|
||||
<ItemGroup>
|
||||
<Reference Include="FlyCapture2Managedd_v120">
|
||||
<HintPath>..\..\bin\vs2013\FlyCapture2Managedd_v120.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
</When>
|
||||
<When Condition=" ('$(Configuration)|$(Platform)' == 'Release|AnyCPU' And Exists('..\..\bin64')) Or ('$(Configuration)|$(Platform)' == 'Release|x64' And Exists('..\..\bin64')) ">
|
||||
<ItemGroup>
|
||||
<Reference Include="FlyCapture2Managed_v120">
|
||||
<HintPath>..\..\bin64\vs2013\FlyCapture2Managed_v120.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
</When>
|
||||
<When Condition=" ('$(Configuration)|$(Platform)' == 'Debug|AnyCPU' And Exists('..\..\bin64')) Or ('$(Configuration)|$(Platform)' == 'Debug|x64' And Exists('..\..\bin64')) ">
|
||||
<ItemGroup>
|
||||
<Reference Include="FlyCapture2Managedd_v120">
|
||||
<HintPath>..\..\bin64\vs2013\FlyCapture2Managedd_v120.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
</When>
|
||||
</Choose>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
<PropertyGroup>
|
||||
<PostBuildEvent>IF $(Platform)==x86 (
|
||||
copy "$(ProjectDir)..\..\bin\vs2013\libiomp5md.dll" "$(TargetDir)"
|
||||
IF $(ConfigurationName)==Debug (
|
||||
copy "$(TargetDir)$(TargetFileName)" "$(ProjectDir)..\..\bin\vs2013\$(TargetName)d_v120$(TargetExt)"
|
||||
copy "$(ProjectDir)..\..\bin\vs2013\FlyCapture2d_v120.dll" "$(TargetDir)"
|
||||
) ELSE (
|
||||
copy "$(TargetDir)$(TargetFileName)" "$(ProjectDir)..\..\bin\vs2013\$(TargetName)_v120$(TargetExt)"
|
||||
copy "$(ProjectDir)..\..\bin\vs2013\FlyCapture2_v120.dll" "$(TargetDir)"
|
||||
)
|
||||
) ELSE IF $(Platform)==x64 (
|
||||
copy "$(ProjectDir)..\..\bin64\vs2013\libiomp5md.dll" "$(TargetDir)"
|
||||
IF $(ConfigurationName)==Debug (copy "$(TargetDir)$(TargetFileName)" "$(ProjectDir)..\..\bin64\vs2013\$(TargetName)d_v120$(TargetExt)"
|
||||
copy "$(ProjectDir)..\..\bin64\vs2013\FlyCapture2d_v120.dll" "$(TargetDir)"
|
||||
) ELSE (
|
||||
copy "$(TargetDir)$(TargetFileName)" "$(ProjectDir)..\..\bin64\vs2013\$(TargetName)_v120$(TargetExt)"
|
||||
copy "$(ProjectDir)..\..\bin64\vs2013\FlyCapture2_v120.dll" "$(TargetDir)"
|
||||
)
|
||||
)</PostBuildEvent>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,25 @@
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 2013
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BusEventsEx_CSharp", "BusEventsEx_CSharp_vs2013.csproj", "{E1D8229B-CDBC-E3F0-361D-DE432220CE72}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|x64 = Debug|x64
|
||||
Debug|x86 = Debug|x86
|
||||
Release|x64 = Release|x64
|
||||
Release|x86 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{E1D8229B-CDBC-E3F0-361D-DE432220CE72}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{E1D8229B-CDBC-E3F0-361D-DE432220CE72}.Debug|x64.Build.0 = Debug|x64
|
||||
{E1D8229B-CDBC-E3F0-361D-DE432220CE72}.Debug|x86.ActiveCfg = Debug|x86
|
||||
{E1D8229B-CDBC-E3F0-361D-DE432220CE72}.Debug|x86.Build.0 = Debug|x86
|
||||
{E1D8229B-CDBC-E3F0-361D-DE432220CE72}.Release|x64.ActiveCfg = Release|x64
|
||||
{E1D8229B-CDBC-E3F0-361D-DE432220CE72}.Release|x64.Build.0 = Release|x64
|
||||
{E1D8229B-CDBC-E3F0-361D-DE432220CE72}.Release|x86.ActiveCfg = Release|x86
|
||||
{E1D8229B-CDBC-E3F0-361D-DE432220CE72}.Release|x86.Build.0 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
@@ -0,0 +1,131 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{E1D8229B-CDBC-E3F0-361D-DE432220CE72}</ProjectGuid>
|
||||
<OutputType>Exe</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>BusEventsEx_CSharp</RootNamespace>
|
||||
<AssemblyName>BusEventsEx_CSharp</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<BaseIntermediateOutputPath>$(PlatformToolset)\x86\Debug\</BaseIntermediateOutputPath>
|
||||
<IntermediateOutputPath>$(BaseIntermediateOutputPath)</IntermediateOutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin64\Debug\</OutputPath>
|
||||
<BaseIntermediateOutputPath>$(PlatformToolset)\x64\Debug\</BaseIntermediateOutputPath>
|
||||
<IntermediateOutputPath>$(BaseIntermediateOutputPath)</IntermediateOutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<BaseIntermediateOutputPath>$(PlatformToolset)\x86\Release\</BaseIntermediateOutputPath>
|
||||
<IntermediateOutputPath>$(BaseIntermediateOutputPath)</IntermediateOutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' ">
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin64\Release\</OutputPath>
|
||||
<BaseIntermediateOutputPath>$(PlatformToolset)\x64\Release\</BaseIntermediateOutputPath>
|
||||
<IntermediateOutputPath>$(BaseIntermediateOutputPath)</IntermediateOutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<Choose>
|
||||
<When Condition=" ('$(Configuration)|$(Platform)' == 'Release|AnyCPU' And Exists('..\..\bin') And !Exists('..\..\bin64')) Or ('$(Configuration)|$(Platform)' == 'Release|x86' And Exists('..\..\bin')) ">
|
||||
<ItemGroup>
|
||||
<Reference Include="FlyCapture2Managed_v140">
|
||||
<HintPath>..\..\bin\vs2015\FlyCapture2Managed_v140.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
</When>
|
||||
<When Condition=" ('$(Configuration)|$(Platform)' == 'Debug|AnyCPU' And Exists('..\..\bin') And !Exists('..\..\bin64')) Or ('$(Configuration)|$(Platform)' == 'Debug|x86' And Exists('..\..\bin')) ">
|
||||
<ItemGroup>
|
||||
<Reference Include="FlyCapture2Managedd_v140">
|
||||
<HintPath>..\..\bin\vs2015\FlyCapture2Managedd_v140.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
</When>
|
||||
<When Condition=" ('$(Configuration)|$(Platform)' == 'Release|AnyCPU' And Exists('..\..\bin64')) Or ('$(Configuration)|$(Platform)' == 'Release|x64' And Exists('..\..\bin64')) ">
|
||||
<ItemGroup>
|
||||
<Reference Include="FlyCapture2Managed_v140">
|
||||
<HintPath>..\..\bin64\vs2015\FlyCapture2Managed_v140.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
</When>
|
||||
<When Condition=" ('$(Configuration)|$(Platform)' == 'Debug|AnyCPU' And Exists('..\..\bin64')) Or ('$(Configuration)|$(Platform)' == 'Debug|x64' And Exists('..\..\bin64')) ">
|
||||
<ItemGroup>
|
||||
<Reference Include="FlyCapture2Managedd_v140">
|
||||
<HintPath>..\..\bin64\vs2015\FlyCapture2Managedd_v140.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
</When>
|
||||
</Choose>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
<PropertyGroup>
|
||||
<PostBuildEvent>IF $(Platform)==x86 (
|
||||
copy "$(ProjectDir)..\..\bin\vs2015\libiomp5md.dll" "$(TargetDir)"
|
||||
IF $(ConfigurationName)==Debug (
|
||||
copy "$(TargetDir)$(TargetFileName)" "$(ProjectDir)..\..\bin\vs2015\$(TargetName)d_v140$(TargetExt)"
|
||||
copy "$(ProjectDir)..\..\bin\vs2015\FlyCapture2d_v140.dll" "$(TargetDir)"
|
||||
) ELSE (
|
||||
copy "$(TargetDir)$(TargetFileName)" "$(ProjectDir)..\..\bin\vs2015\$(TargetName)_v140$(TargetExt)"
|
||||
copy "$(ProjectDir)..\..\bin\vs2015\FlyCapture2_v140.dll" "$(TargetDir)"
|
||||
)
|
||||
) ELSE IF $(Platform)==x64 (
|
||||
copy "$(ProjectDir)..\..\bin64\vs2015\libiomp5md.dll" "$(TargetDir)"
|
||||
IF $(ConfigurationName)==Debug (copy "$(TargetDir)$(TargetFileName)" "$(ProjectDir)..\..\bin64\vs2015\$(TargetName)d_v140$(TargetExt)"
|
||||
copy "$(ProjectDir)..\..\bin64\vs2015\FlyCapture2d_v140.dll" "$(TargetDir)"
|
||||
) ELSE (
|
||||
copy "$(TargetDir)$(TargetFileName)" "$(ProjectDir)..\..\bin64\vs2015\$(TargetName)_v140$(TargetExt)"
|
||||
copy "$(ProjectDir)..\..\bin64\vs2015\FlyCapture2_v140.dll" "$(TargetDir)"
|
||||
)
|
||||
)</PostBuildEvent>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,25 @@
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 2015
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BusEventsEx_CSharp", "BusEventsEx_CSharp_vs2015.csproj", "{E1D8229B-CDBC-E3F0-361D-DE432220CE72}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|x64 = Debug|x64
|
||||
Debug|x86 = Debug|x86
|
||||
Release|x64 = Release|x64
|
||||
Release|x86 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{E1D8229B-CDBC-E3F0-361D-DE432220CE72}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{E1D8229B-CDBC-E3F0-361D-DE432220CE72}.Debug|x64.Build.0 = Debug|x64
|
||||
{E1D8229B-CDBC-E3F0-361D-DE432220CE72}.Debug|x86.ActiveCfg = Debug|x86
|
||||
{E1D8229B-CDBC-E3F0-361D-DE432220CE72}.Debug|x86.Build.0 = Debug|x86
|
||||
{E1D8229B-CDBC-E3F0-361D-DE432220CE72}.Release|x64.ActiveCfg = Release|x64
|
||||
{E1D8229B-CDBC-E3F0-361D-DE432220CE72}.Release|x64.Build.0 = Release|x64
|
||||
{E1D8229B-CDBC-E3F0-361D-DE432220CE72}.Release|x86.ActiveCfg = Release|x86
|
||||
{E1D8229B-CDBC-E3F0-361D-DE432220CE72}.Release|x86.Build.0 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
97
Lib/FlyCapture2/src/BusEventsEx_CSharp/Program.cs
Normal file
97
Lib/FlyCapture2/src/BusEventsEx_CSharp/Program.cs
Normal file
@@ -0,0 +1,97 @@
|
||||
//=============================================================================
|
||||
// Copyright © 2017 FLIR Integrated Imaging Solutions, Inc. All Rights Reserved.
|
||||
//
|
||||
// This software is the confidential and proprietary information of FLIR
|
||||
// Integrated Imaging Solutions, Inc. ("Confidential Information"). You
|
||||
// shall not disclose such Confidential Information and shall use it only in
|
||||
// accordance with the terms of the license agreement you entered into
|
||||
// with FLIR Integrated Imaging Solutions, Inc. (FLIR).
|
||||
//
|
||||
// FLIR MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
|
||||
// SOFTWARE, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
// IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
||||
// PURPOSE, OR NON-INFRINGEMENT. FLIR SHALL NOT BE LIABLE FOR ANY DAMAGES
|
||||
// SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
|
||||
// THIS SOFTWARE OR ITS DERIVATIVES.
|
||||
//=============================================================================
|
||||
//=============================================================================
|
||||
// $Id: Program.cs 316528 2017-02-22 00:03:53Z alin $
|
||||
//=============================================================================
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
using FlyCapture2Managed;
|
||||
|
||||
namespace BusEventsEx_CSharp
|
||||
{
|
||||
class Program
|
||||
{
|
||||
static void PrintBuildInfo()
|
||||
{
|
||||
FC2Version version = ManagedUtilities.libraryVersion;
|
||||
|
||||
StringBuilder newStr = new StringBuilder();
|
||||
newStr.AppendFormat(
|
||||
"FlyCapture2 library version: {0}.{1}.{2}.{3}\n",
|
||||
version.major, version.minor, version.type, version.build);
|
||||
|
||||
Console.WriteLine(newStr);
|
||||
}
|
||||
|
||||
void OnBusReset(System.IntPtr ptr, uint serialNumber)
|
||||
{
|
||||
Console.WriteLine("{0} - *** BUS RESET ***", DateTime.Now.ToString());
|
||||
}
|
||||
|
||||
void OnBusArrival(System.IntPtr ptr, uint serialNumber)
|
||||
{
|
||||
Console.WriteLine("{0} - *** BUS ARRIVAL ({1})***", DateTime.Now.ToString(), serialNumber);
|
||||
}
|
||||
|
||||
void OnBusRemoval(System.IntPtr ptr, uint serialNumber)
|
||||
{
|
||||
Console.WriteLine("{0} - *** BUS REMOVAL ({1})***", DateTime.Now.ToString(), serialNumber);
|
||||
}
|
||||
|
||||
void BusResetLoop()
|
||||
{
|
||||
ManagedBusManager busMgr = new ManagedBusManager();
|
||||
|
||||
List<IntPtr> callbackHandles = new List<IntPtr>();
|
||||
|
||||
// Register bus events
|
||||
IntPtr busResetHandle = busMgr.RegisterCallback(OnBusReset, ManagedCallbackType.BusReset, IntPtr.Zero);
|
||||
IntPtr busArrivalHandle = busMgr.RegisterCallback(OnBusArrival, ManagedCallbackType.Arrival, IntPtr.Zero);
|
||||
IntPtr busRemovalHandle = busMgr.RegisterCallback(OnBusRemoval, ManagedCallbackType.Removal, IntPtr.Zero);
|
||||
|
||||
callbackHandles.Add(busResetHandle);
|
||||
callbackHandles.Add(busArrivalHandle);
|
||||
callbackHandles.Add(busRemovalHandle);
|
||||
|
||||
// Prevent exit if CTL+C is pressed.
|
||||
Console.TreatControlCAsInput = true;
|
||||
|
||||
Console.WriteLine("Press any key to exit...\n");
|
||||
ConsoleKeyInfo cki = Console.ReadKey();
|
||||
|
||||
// Unregister bus events
|
||||
foreach (IntPtr currHandle in callbackHandles)
|
||||
{
|
||||
busMgr.UnregisterCallback(currHandle);
|
||||
}
|
||||
}
|
||||
|
||||
static void Main(string[] args)
|
||||
{
|
||||
PrintBuildInfo();
|
||||
|
||||
Program program = new Program();
|
||||
program.BusResetLoop();
|
||||
|
||||
Console.WriteLine("Done! Press enter to exit...");
|
||||
Console.ReadLine();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("BusEventsEx_CSharp")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("FLIR Integrated Imaging Solutions, Inc.")]
|
||||
[assembly: AssemblyProduct("BusEventsEx_CSharp")]
|
||||
[assembly: AssemblyCopyright("© FLIR Integrated Imaging Solutions, Inc. All rights reserved.")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("e849dd24-4e1b-4813-be63-f3cd5eb74336")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
[assembly: AssemblyVersion("2.12.3.2")]
|
||||
[assembly: AssemblyFileVersion("2.12.3.2")]
|
||||
[assembly: AssemblyInformationalVersion("2.12.3.201801090091")]
|
||||
7
Lib/FlyCapture2/src/BusEventsEx_CSharp/app.config
Normal file
7
Lib/FlyCapture2/src/BusEventsEx_CSharp/app.config
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0"/>
|
||||
</startup>
|
||||
</configuration>
|
||||
@@ -0,0 +1 @@
|
||||
1b45d85c3aab23d4903265f6e0d7d6a1aa7bcfc5
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
c2c10bdfc7f05bde2ea3454c5e4a34be072edd47
|
||||
Binary file not shown.
Reference in New Issue
Block a user