dll

How to solve “Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types” Android error?

[亡魂溺海] 提交于 2021-01-28 05:15:00
问题 I'm working in an App with Unity3D. Im using my own utilities DLL with some classes. I've been working for months now, and made lots of builds/compilations with no problem. Last week added a new class to the DLL, it worked well in my PC but when I builded the project and used it in my Android device it stopped working. The Android Monitor program shows me that error: "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" The types that Newtonsoft can find

Can I change the name of a dll to load at runtime?

江枫思渺然 提交于 2021-01-28 04:10:41
问题 Say I have a dll named middle.dll that is importing functions from runme.dll I now have a replacement runmeDBG.dll that has all the same functions exported as runme.dll Is there a way to use middle.dll but have it link to the functions exported from runmeDBG.dll instead of runme.dll? I can change the code for middle.dll but do not know the name of the dll that will contain the functions to use when I build middle.dll. (And all of this in the context of C/C++ and the Mingw toolset) 回答1: I'm

C++ Qt MingW bad reloc 0xc address in section rdata

扶醉桌前 提交于 2021-01-28 00:51:50
问题 I'm with Qt 5.5 on Windows 10 64 bit with MingW compiler. I'm trying to compile my project in debug mode => Works perfectly But in release mode, I have these errors: undefined reference to `TileMap::XYToNode(int, int) const' undefined reference to `TileMap::XYToNode(int, int) const' ./release\perso.o: bad reloc address 0xc in section `.rdata' collect2.exe:-1: erreur : error: ld returned 1 exit status I have tried to do clean, qmake, and rebuild, but there are still errors. I use some SFML

How to overwrite macro definition in CMake

杀马特。学长 韩版系。学妹 提交于 2021-01-27 21:40:51
问题 I am on Windows 10, Visual Studio 2015. Suppose I am building library A with CMakeLists looking like cmake_minimum_required(VERSION 3.7) project(A) set(DLLIMPORT "__declspec(dllimport)") set(DLLEXPORT "__declspec(dllexport)") set(PROJECT_SRCS ${PROJECT_SOURCE_DIR}/src/TestA.cpp) set(PROJECT_INCS ${PROJECT_SOURCE_DIR}/include/TestA.h) add_library(${PROJECT_NAME} SHARED ${PROJECT_SRCS} ${PROJECT_INCS}) target_compile_definitions(${PROJECT_NAME} INTERFACE WINDOWS_DLL_API=${DLLIMPORT}) target

How do I attach a debugger to other process than I start in Visual Studio 2017?

时光总嘲笑我的痴心妄想 提交于 2021-01-27 17:21:48
问题 An architecture which I have to deal with is quite complicated: a native C++ Windows Service creates an out-of-process COM object (native C++, CoCreateInstance with context = CLSCTX_LOCAL_SERVER) which dynamically loads (AfxLoadLibrary) my C# DLL. I would like to debug my DLL when I click Debug -> Start Debugging. I know that I can debug it when I attach to COM object process using Debug -> Attach to process and I can use System.Diagnostics.Debugger.Launch() in my DLL code if I need to debug

Websphere MQ C++ client crashes in VS2013- library/linker issues?

六眼飞鱼酱① 提交于 2021-01-27 16:32:04
问题 I just upgraded a project to VS2013 from VS2010 and now it crashes whenever I send a message via MQ, yet it worked fine under VS2010. I suspected it was something to do with VS2013, so I built one of the demo apps that comes with MQ - imqwrld.cpp which is a simple "hello world" app. This code alone is enough for the debug runtime library to throw an exception: #include <imqi.hpp> // WebSphere MQ C++ int main ( int argc, char * * argv ) { ImqQueue * p = new ImqQueue(); delete p; return 0 }

Websphere MQ C++ client crashes in VS2013- library/linker issues?

帅比萌擦擦* 提交于 2021-01-27 16:31:40
问题 I just upgraded a project to VS2013 from VS2010 and now it crashes whenever I send a message via MQ, yet it worked fine under VS2010. I suspected it was something to do with VS2013, so I built one of the demo apps that comes with MQ - imqwrld.cpp which is a simple "hello world" app. This code alone is enough for the debug runtime library to throw an exception: #include <imqi.hpp> // WebSphere MQ C++ int main ( int argc, char * * argv ) { ImqQueue * p = new ImqQueue(); delete p; return 0 }

Websphere MQ C++ client crashes in VS2013- library/linker issues?

主宰稳场 提交于 2021-01-27 16:31:09
问题 I just upgraded a project to VS2013 from VS2010 and now it crashes whenever I send a message via MQ, yet it worked fine under VS2010. I suspected it was something to do with VS2013, so I built one of the demo apps that comes with MQ - imqwrld.cpp which is a simple "hello world" app. This code alone is enough for the debug runtime library to throw an exception: #include <imqi.hpp> // WebSphere MQ C++ int main ( int argc, char * * argv ) { ImqQueue * p = new ImqQueue(); delete p; return 0 }

Java + JNA : The specified procedure could not be found

时光怂恿深爱的人放手 提交于 2021-01-27 15:51:16
问题 I'm trying to create a dll file using visual studio and use/access it in a java project. The library seems to get loaded, but always the same exception is thrown: Exception in thread "main" java.lang.UnsatisfiedLinkError: Error looking up function 'function': The specified procedure could not be found. My C/C++ skills ar not the best so the problem could be there. I tried to edit h and cpp files, using classes, namespaces, static methods and other staff found on the web, but nothing to do. I

Java + JNA : The specified procedure could not be found

馋奶兔 提交于 2021-01-27 15:19:21
问题 I'm trying to create a dll file using visual studio and use/access it in a java project. The library seems to get loaded, but always the same exception is thrown: Exception in thread "main" java.lang.UnsatisfiedLinkError: Error looking up function 'function': The specified procedure could not be found. My C/C++ skills ar not the best so the problem could be there. I tried to edit h and cpp files, using classes, namespaces, static methods and other staff found on the web, but nothing to do. I