diff --git a/BlitzUtility.vcxproj b/BlitzUtility.vcxproj index 4c440f2..53b3811 100644 --- a/BlitzUtility.vcxproj +++ b/BlitzUtility.vcxproj @@ -41,14 +41,12 @@ $(SolutionDir)\#Build\$(ProjectName)\$(Configuration)\ $(SolutionDir)\#Intermediate\$(ProjectName)\$(Configuration)\ - true - $(ProjectDir);$(VC_IncludePath);$(WindowsSDK_IncludePath); + false $(SolutionDir)\#Build\$(ProjectName)\$(Configuration)\ $(SolutionDir)\#Intermediate\$(ProjectName)\$(Configuration)\ - true - $(ProjectDir);$(VC_IncludePath);$(WindowsSDK_IncludePath); + false @@ -56,9 +54,9 @@ Disabled - $(SolutionDir);$(ProjectDir) + + MultiThreaded - SQLITE_ENABLE_FTS4;SQLITE_ENABLE_RTREE;%(PreprocessorDefinitions) Default 4Bytes false @@ -69,21 +67,35 @@ false false true - false + true false false false - StdCall + Cdecl + Disabled + false + Neither + true + NoExtensions + false + true + %(PreprocessorDefinitions) true 1.0 + Enabled + false + false Copying Resources + + false + @@ -92,9 +104,9 @@ true - $(SolutionDir);$(ProjectDir) + + MultiThreaded - SQLITE_ENABLE_FTS4;SQLITE_ENABLE_RTREE;%(PreprocessorDefinitions) Speed 4Bytes false @@ -107,38 +119,45 @@ false false true - false + true false false - StdCall + Cdecl + AnySuitable + true + NoExtensions + false + true + %(PreprocessorDefinitions) false - - + false 1.0 + Enabled + false Copying Resources + + false + - - - @@ -152,13 +171,10 @@ Cdecl CompileAsC - - - diff --git a/BlitzUtility.vcxproj.filters b/BlitzUtility.vcxproj.filters index b562fa0..7f81313 100644 --- a/BlitzUtility.vcxproj.filters +++ b/BlitzUtility.vcxproj.filters @@ -14,9 +14,6 @@ {3ac37a01-a835-479c-b0b0-ecfd04640134} - - {38444b44-ebf1-4cae-a1a3-1a0b80b045a1} - {e8e48b8c-14c2-40b5-b48d-d9b55fe6852d} @@ -26,9 +23,6 @@ {605f2cca-0949-4af8-ab67-7042309a2abc} - - {2b65f925-151d-4073-a06e-8d7d4603ef16} - @@ -67,15 +61,6 @@ Source Files\Utility - - Source Files\Math - - - Source Files\Math - - - Source Files\Libraries - @@ -114,15 +99,6 @@ Source Files\Utility - - Source Files\Math - - - Source Files\Math - - - Source Files\Libraries - diff --git a/Database/SQLite/SQLite.cpp b/Database/SQLite/SQLite.cpp index 2a23d04..2bad6bd 100644 --- a/Database/SQLite/SQLite.cpp +++ b/Database/SQLite/SQLite.cpp @@ -15,7 +15,7 @@ // along with this program. If not, see . #include "SQLite.h" -#include "..\BlitzPointer\Include\BlitzPointer.h" +#include "..\BlitzPointer\BlitzPointer.h" DLL_METHOD const char* DLL_CALL SQLite_Version() { return sqlite3_version; @@ -77,7 +77,8 @@ DLL_METHOD int32_t DLL_CALL SQLite_Busy_Timeout(sqlite3* db, int32_t timeout) { } int __cdecl SQLite3_Busy_Handler_Internal(void* handler, int prm) { - return BlitzPointer_CallFunction1((int32_t)handler, (int32_t)prm); + BP_BlitzFunction1_t lpFunctionPointer = (BP_BlitzFunction1_t)handler; + return lpFunctionPointer((int32_t)prm); } DLL_METHOD int32_t DLL_CALL SQLite_Busy_Handler(sqlite3* db, int32_t handler) { diff --git a/dllmain.h b/dllmain.h index 7c701b5..dd192e8 100644 --- a/dllmain.h +++ b/dllmain.h @@ -16,10 +16,6 @@ #pragma once -// STL Exceptions -#include -#include - // Memory Management #include @@ -32,11 +28,7 @@ #include // Macros -#ifndef IMPORT - #define DLL_METHOD extern "C" //__declspec(dllexport) -#else - #define DLL_METHOD extern "c" __declspec(dllimport) -#endif +#define DLL_METHOD extern "C" #define DLL_CALL __stdcall //Templates