dll

VSIX Extension uses 3rd party DLLs unable to load one of the dependency

血红的双手。 提交于 2020-02-24 12:08:59
问题 I am developing an extension to VS2013. Since it will be installed through MSI, I am changing the base directory to installation folder using ProvideBindingPath attribute to package class. But the 3rd party dll reference which will be loaded in runtime is not picking dll from the probed path. Its always looking into Visual studio devenv.exe folder. Is there any way to force the dll to look into my installation folder. using MD=Microsoft.VisualStudio.Modeling.Shell; MD.ProvideBindingPath

Two different versions of Newtonsoft.Json.dll needed in ASP.NET MVC

好久不见. 提交于 2020-02-23 12:43:37
问题 I have developed a MVC application that has dependency on Connectwise SDK that uses Newtonsoft.Json.dll v6.0.0.0 and Dropbox SDK that uses Newtonsoft.Json.dll v7.0.0.0. I need to ensure that my project uses the appropriate dll when needed. After researching, I tried the following: - Placed the 2 dlls under sub-folders /dlls/6.0.0.0/ and /dlls/7.0.0.0 resp. - Referenced version 6.0.0.0 dll in project References - Added to web.config <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

Two different versions of Newtonsoft.Json.dll needed in ASP.NET MVC

▼魔方 西西 提交于 2020-02-23 12:42:52
问题 I have developed a MVC application that has dependency on Connectwise SDK that uses Newtonsoft.Json.dll v6.0.0.0 and Dropbox SDK that uses Newtonsoft.Json.dll v7.0.0.0. I need to ensure that my project uses the appropriate dll when needed. After researching, I tried the following: - Placed the 2 dlls under sub-folders /dlls/6.0.0.0/ and /dlls/7.0.0.0 resp. - Referenced version 6.0.0.0 dll in project References - Added to web.config <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

How to load a c++ dll file into Matlab

喜你入骨 提交于 2020-02-23 09:37:09
问题 I have a C++ dll file that uses a lot of other c++ librarys (IPP, Opencv +++) that I need to load into matlab. How can I do this? I have tried loadlibrary and mex. The load library does not work. The mex finds the linux things (platform independent library) and tries to include them. And that does not work. Does anyone have any good ideas? 回答1: loadlibrary should work. I use it all the time to call functions from dlls written in C++ with C wrappers. What errors are you getting when you try to

How to link to an xxx.dll when the provider only ships it with an xxx.lib and you are using MinGW-w64 and not MSVC?

こ雲淡風輕ζ 提交于 2020-02-23 07:50:29
问题 Firebird and Boost communities only provide the xxx.lib for their pre-built xxx.dll binaries, and I am using MinGW-w64 v7.0.0 with GCC v8.1.0 , and this last one expects a libxxx.a file containing all the xxx.dll function symbols to link with. For Boost , I can build it from the source code for MinGW-w64 (though I still prefer using the pre-built ones, because the build process for big toolkits like this one takes forever). As for Firebird , it is not buildable using MinGW-w64 at all, except

Handling pointers to structure in C#

人走茶凉 提交于 2020-02-22 07:00:11
问题 I'm working on project which includes DLL written in C++ and a C# code. Lets say that that DLL has a function: MyStruct* GetPointer(); // returns pointer to MyStruct structure MyStruct structure looks like this: struct MyStruct { OtherStruct1 *data1; OtherStruct2 *data2; }; And OtherStruct1 and OtherStruct2 structures look like this: struct OtherStruct1 { public: double x; char y; }; struct OtherStruct2 { public: float a; float b; float c; float d; }; My question is - what's the best way to

Handling pointers to structure in C#

这一生的挚爱 提交于 2020-02-22 06:59:08
问题 I'm working on project which includes DLL written in C++ and a C# code. Lets say that that DLL has a function: MyStruct* GetPointer(); // returns pointer to MyStruct structure MyStruct structure looks like this: struct MyStruct { OtherStruct1 *data1; OtherStruct2 *data2; }; And OtherStruct1 and OtherStruct2 structures look like this: struct OtherStruct1 { public: double x; char y; }; struct OtherStruct2 { public: float a; float b; float c; float d; }; My question is - what's the best way to

The procedure entry point __gxx_personality_v0 could not be located in the dynamic link library libstdc++-6.dll

眉间皱痕 提交于 2020-02-22 05:59:05
问题 I got that error when trying to run my opencv application. I´m using Windows7,CodeBlocks 12.11, opencv2.4.4 and MinGW compiler (the one that comes in CodeBlocks). It compiles and creates the executable but when i try to run it crashes with the procedure entry point error. I have added C:\programs\CodeBlocks\Mingw\bin to "PATH" variable and i know there is libstdc++-6.dll. I don´t know what´s hapenning. This is the simple code: include <iostream> include <opencv2/highgui/highgui.hpp> using

The procedure entry point __gxx_personality_v0 could not be located in the dynamic link library libstdc++-6.dll

橙三吉。 提交于 2020-02-22 05:59:02
问题 I got that error when trying to run my opencv application. I´m using Windows7,CodeBlocks 12.11, opencv2.4.4 and MinGW compiler (the one that comes in CodeBlocks). It compiles and creates the executable but when i try to run it crashes with the procedure entry point error. I have added C:\programs\CodeBlocks\Mingw\bin to "PATH" variable and i know there is libstdc++-6.dll. I don´t know what´s hapenning. This is the simple code: include <iostream> include <opencv2/highgui/highgui.hpp> using

Dynamic library not loading in R binary package build

£可爱£侵袭症+ 提交于 2020-02-20 10:33:23
问题 I am trying to build a package with compiled C code in R using 'RStudio' and 'devtools' in a Windows environment. Only one of the function uses the C code in src folder. The source package works fine. I can use all the functions. I am able to compile the C code using devtools::document() and the corresponding .dll and .o file also appears in the src folder. Then I can load the code using dev_tools::load_all or Ctrl+Shift+L and run all the functions. However when I am building and reloading