From 9eebd6daa34c25096c324961a8a9c6501c1c7868 Mon Sep 17 00:00:00 2001 From: David Zimmer Date: Thu, 27 Apr 2017 08:43:47 -0400 Subject: [PATCH] vb bindings remove DYNLOAD (#812) --- bindings/vb6/main.cpp | 8 ++++---- bindings/vb6/ucvbshim.vcproj | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bindings/vb6/main.cpp b/bindings/vb6/main.cpp index 26b98de7..725136f1 100644 --- a/bindings/vb6/main.cpp +++ b/bindings/vb6/main.cpp @@ -25,7 +25,7 @@ #endif #include - +#pragma comment(lib, "unicorn.lib") //if you compile with VS2008 you will need to add stdint.h and inttypes.h to your compiler include directory //you can find examples here: https://github.com/dzzie/VS_LIBEMU/tree/master/libemu/include @@ -168,11 +168,11 @@ uc_err __stdcall ucs_hook_add(uc_engine *uc, uc_hook *hh, int type, void *callba unsigned int __stdcall ucs_dynload(char *path){ #pragma EXPORT - #ifdef DYNLOAD + /*#ifdef DYNLOAD return uc_dyn_load(path, 0); - #else + #else*/ return 1; - #endif + //#endif } unsigned int __stdcall ucs_version(unsigned int *major, unsigned int *minor){ diff --git a/bindings/vb6/ucvbshim.vcproj b/bindings/vb6/ucvbshim.vcproj index d4feb0c5..83f79529 100644 --- a/bindings/vb6/ucvbshim.vcproj +++ b/bindings/vb6/ucvbshim.vcproj @@ -42,7 +42,7 @@ Name="VCCLCompilerTool" Optimization="0" AdditionalIncludeDirectories="./../../include/" - PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;DYNLOAD;" + PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;" MinimalRebuild="true" BasicRuntimeChecks="3" RuntimeLibrary="1" @@ -120,7 +120,7 @@ Optimization="2" EnableIntrinsicFunctions="true" AdditionalIncludeDirectories="./../../include/" - PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;DYNLOAD;" + PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;" RuntimeLibrary="0" EnableFunctionLevelLinking="true" UsePrecompiledHeader="0"