Added 64 bit
This commit is contained in:
Binary file not shown.
@@ -74,6 +74,8 @@
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<LinkIncremental>true</LinkIncremental>
|
||||
<IncludePath>$(VC_IncludePath);$(WindowsSDK_IncludePath);C:\Program Files\Soci\soci_4_0_0\include;</IncludePath>
|
||||
<LibraryPath>$(VC_LibraryPath_x64);$(WindowsSDK_LibraryPath_x64);$(NETFXKitsDir)Lib\um\x64;C:\Program Files\Soci\soci_4_0_0\bun;</LibraryPath>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
@@ -105,7 +107,11 @@
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<AdditionalLibraryDirectories>C:\Program Files\Soci\soci_4_0_0\lib64;</AdditionalLibraryDirectories>
|
||||
</Link>
|
||||
<PostBuildEvent>
|
||||
<Command>xcopy "C:\Program Files\Soci\soci_4_0_0\bin\*.dll" "$(TargetDir)"</Command>
|
||||
</PostBuildEvent>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
@@ -142,6 +148,7 @@
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="src\Main.cpp" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
|
||||
@@ -14,4 +14,9 @@
|
||||
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="src\Main.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,34 @@
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <exception>
|
||||
|
||||
|
||||
#include <soci/soci.h>
|
||||
#include <soci/soci-backend.h>
|
||||
#include <soci/odbc/soci-odbc.h>
|
||||
|
||||
#pragma comment(lib, "soci_core_4_0.lib")
|
||||
#pragma comment(lib, "soci_odbc_4_0.lib")
|
||||
|
||||
|
||||
int main()
|
||||
{
|
||||
std::cout << "Hello\n";
|
||||
|
||||
|
||||
try
|
||||
{
|
||||
const std::string dsn_path("filedsn=C:\\ViperSQL.dsn");
|
||||
|
||||
soci::backend_factory const &back_end = *soci::factory_odbc();
|
||||
soci::session sql(back_end, dsn_path);
|
||||
}
|
||||
catch (std::exception &ex)
|
||||
{
|
||||
std::cout << "An error occurred\n";
|
||||
std::cout << ex.what() << "\n";
|
||||
}
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user