dll

PHP startup mongo: Unable to initialize module

拈花ヽ惹草 提交于 2020-01-02 02:38:38
问题 I am currently Using xampp for PHP . I installed *mongo_db(1.8.5)* in my system and also installed xampp-1.8.1-VC9 in my system. In order to configure PHP for mongoDB , I have downloaded *php_mongo.dll*(tried both VC9 thread safe and non-thread safe ) and pasted the .dll file in the '../php/ext' directory and also added extension=php_mongo.dll in the php.ini file. Now when I try to start the apache in xampp it shows the following display eventhough apache is getting started. PHP startup mongo

Issue while loading a dll library file… java.lang.UnsatisfiedLinkError: Can't load library

。_饼干妹妹 提交于 2020-01-02 02:20:10
问题 While loading a dll file, I am getting the following exception: Exception in thread "main" java.lang.UnsatisfiedLinkError: D:\Transliteration\rlpnc-3.1.0-sdk-ia32-w32-msvc80\rlp\bin\ia32-w32-msvc80\btrntjni.dll: The system cannot find message text for message number 0x%1 in the message file for %2 at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(Unknown Source) at java.lang.ClassLoader.loadLibrary(Unknown Source) at java.lang.Runtime.load0

How do I increase the stack size in python

久未见 提交于 2020-01-02 02:06:32
问题 I have a python program that uses a custom-built DLL. This DLL crashes due to a stack overflow. This overflow is not due to a recursive function gone bad, but to large allocations on the stack using alloca(). I want to increase stack size to get rid of this error. Is there any way to do this? 回答1: AFAIK a program can only change the stack size of new threads or processes (Windows' CreateThread function, for example). As Python (and the Win32 API for Python) does not expose such functionality,

C++ How to export a static class member from a dll?

自古美人都是妖i 提交于 2020-01-02 01:20:11
问题 //API mathAPI.h, both in Dll.cpp and Test.cpp #ifdef __APIBUILD #define __API __declspec(dllexport) //#error __APIBUILD cannot be defined. #else #define __API __declspec(dllimport) #endif class math { public: static __API double Pi; static __API double Sum(double x, double y); }; // Dll.cpp __APIBUILD is defined #include "mathAPI.h" double math::Pi = 3.14; double math::Sum(double x, double y) { return x + y; } // Test.cpp __APIBUILD not defined #include <iostream> #pragma comment(lib, "dll

System-wide hooks with MHook

为君一笑 提交于 2020-01-01 19:33:53
问题 I have this project where I hook some Windows functions (GetOpenFileNameA, GetOpenFileNameW, GetSaveFileNameA, GetSaveFileNameW) with MHook library. This is the code I use to install the hooks. for(size_t i = 0; i < FunctionsCount; ++i) { HMODULE hModule = GetModuleHandleA(Function[i].ModuleName); //[1] if( !hModule ) return FALSE; *Function[i].Original = GetProcAddress(hModule, Function[i].Name); if(*Function[i].Original == NULL) return FALSE; if(!Mhook_SetHook(Function[i].Original, Function

Loading dll library from Resource to Current Domain(Embedding dll in main exe file)

和自甴很熟 提交于 2020-01-01 19:31:32
问题 I'm trying to load dll libraries during runtime using the following code so that I don't have to provide the user with lot of dll files along with the main executable file. I have inlude all the dll files as an embedded resource and also in the reference part I have include them and have set the CopyLocal property to false. But the problems here are: 1. All the dll are getting copied to Bin\Debug folder 2. I'm getting FileNotFoundException . I did lot of searches to get these things resolved

using c# datetime in mysql update query

我怕爱的太早我们不能终老 提交于 2020-01-01 18:23:16
问题 I'm trying to run a query from C# to MySQL (version 5.5.27) using the mysql connector for .net from the MySQL website. The ultimate goal of the .dll I'm developing is to keep track of the rows that I've read. The query I use to read the database is: string strSQL = "SELECT date,ask,bid,volume FROM gbpjpy where `read` = 0"; To read in the date, I have: DateTime dateTime = mysqlReader.GetDateTime(0); That works fine. The table has 5 columns, the last column is called "read". Right after the

using c# datetime in mysql update query

随声附和 提交于 2020-01-01 18:23:13
问题 I'm trying to run a query from C# to MySQL (version 5.5.27) using the mysql connector for .net from the MySQL website. The ultimate goal of the .dll I'm developing is to keep track of the rows that I've read. The query I use to read the database is: string strSQL = "SELECT date,ask,bid,volume FROM gbpjpy where `read` = 0"; To read in the date, I have: DateTime dateTime = mysqlReader.GetDateTime(0); That works fine. The table has 5 columns, the last column is called "read". Right after the

Adding references dynamically in .NET

半腔热情 提交于 2020-01-01 14:34:46
问题 I have two dll's (sqlite) , one dll is a 64 bit and other 32 bit dll. Is it possible to add reference dynamically based on processor architecture? P/Invoke is my last option. Any help would be appreciated!! Sample Code: string pathToDll = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\x64\\System.Data.SQLite.dll"; Assembly assembly = Assembly.LoadFrom(pathToDll); AppDomain.CurrentDomain.Load(assembly.GetName()); 回答1: Yes, you can load assembly from a file Assembly

java.lang.UnsatisfiedLinkError returned when calling native method

喜你入骨 提交于 2020-01-01 12:16:04
问题 I am trying to make a Java wrapper for a third party DLL. I created my own DLL that acts as a middle man between JNI and the third party DLL. In java I load this DLL fine but the error java.lang.UnsatisfiedLinkError: sixense.Sixense.init()Z is returned. What could be causing this error and how can I debug it properly? Main.java: package sixense_test; import sixense.ControllerData; import sixense.Sixense; public class Main { public static ControllerData[] controllers = new ControllerData[4];