dll

How to use the Microsoft Linker /Export parameter

吃可爱长大的小学妹 提交于 2019-12-24 13:52:36
问题 I would like to export functions from my object files manually with the Microsoft Linker. It works fine when I use the parameter for every function like this: /Export:ExportedFunction1$qqsv /Export:ExportedFunction2$qqsv and so on... The linker then automatically assigns the ords properly. However in the export table the actuall export name is " ExportedFunction1$qqsv/ExportedFunction2$qqsv/etc.. " I tried the parameter doing like this: /Export:ExportedFunction1$qqsv,1,ExportedFunction1

How to connect to remote MSSQL database using php 5.5.19

我是研究僧i 提交于 2019-12-24 13:50:31
问题 I have had a problem trying to establish a connection to a MSSQL database I created in Microsoft SQL Server Manager 2008 R2 using php 5.5.19 in XAMPP. In the php.ino configuration file under extensions, there is commented out a ';extension=php_mssql.dll'. I removed the comment and ran apache in the xampp control panel. Naturally an error occurred stating ''PHP Startup: Unable to load dynamic library '..\ext\php_mssql.dll cannot be found'. I looked in the ext directory and sure enough it wasn

How can I tell how my DLL was loaded?

筅森魡賤 提交于 2019-12-24 13:44:15
问题 How can my DLL detect whether it was loaded implicitly or explicitly? Example MyTestDll.dll library MyTestDll; uses SimpleShareMem, Windows, Dialogs; procedure DetectMethodDllLoad: bool; begin // ????? // need to detect loading method - implicit or explicit end; procedure MyTest; stdcall; begin if DetectMethodDllLoad then ShowMessage('Working Program1 (implicit dll load)') else ShowMessage('Working Program2 (explicit dll load)'); end; exports MyTest; begin end. Program1.exe (implicit dll load

CefSharp 3 WPF project didn't run in client machine

ε祈祈猫儿з 提交于 2019-12-24 13:42:04
问题 I need to run a CefSharp WPF project in a Client machine. The project works on development machine. But did not run in the Client machine. Here are some findings which I found: When I install the Visual Studio 2013 to client machine and run the application, it works perfectly. Application did not run when install .NetFramework 4.5 and Microsoft Visual C++ 2012 redistributable x86 package to client machine (As proposed by many developers in Stack Over Flow for same problem, I have installed

Inno setup How to determine whether a file is a .NET assembly

拥有回忆 提交于 2019-12-24 12:57:33
问题 I want my inno setup to loop through dlls (both .net and com dlls) in particular folder and register each dll. Is there a way to identify each dll type (.net/com) and use regasm/regsvr depending on the type of the dll. I have a code which loops through .net dlls in a folder and register each one. The code can be found here. In this case, all the dlls were .net type. How to achieve the same with both dlls present in the same folder. 回答1: The following function(s) (originally based on a same

Heap Violations when releasing a CStringArray& parameter from a DLL exported function

社会主义新天地 提交于 2019-12-24 12:57:20
问题 I have developed a MFC dll containing a function having this prototype: //DLL code long __declspec(dllexport) GetData(CString csIdentifier, CStringArray& arrOfData) { //based on the identifier I must add some strings inside the string array arrOfData.Add("..."); arrOfData.Add("..."); /*.....................*/ return 1; } The problem that I have is after the function gets called (from the executable). The destructor of the arrData will be called and will try to release the memory but it will

How should I call this particular dll function in Delphi 6

旧巷老猫 提交于 2019-12-24 11:59:30
问题 I am absolutely new at calling functions from DLLs (call it bad programming habits, but I never needed to). I have this C++ dll (CidGen32.dll at https://skydrive.live.com/redir?resid=4FA1892BF2106B62!1066) that is supposed to export a function with the following signature: extern "C" __declspec(dllexport) int GetCid(const char* pid, char* cid); What it should do is to get a 13 char string such as '1111111111118' and return a 20 char hash. I have tried for the last couple of days to call this

How to share a class in a Visual C++ DLL with C#?

独自空忆成欢 提交于 2019-12-24 11:58:35
问题 I wrote my program in C++ and exported it as a DLL. I have a C# WPF GUI and I want to import the DLL to do the processing. I am very new to C#. How can I use the C++ class in C#? I know I can't just use the .h file. Because I used pointers in C++, in C# I couldn't use pointers. That's why I got confused. Like in C++ i used char* instead of string , and I need to return double* for a big collection of double data, and things like that. 回答1: There are a number of ways: Export the DLL functions

Unloading dll in Java

北城以北 提交于 2019-12-24 11:53:24
问题 According to this and this, it seems that a dll is only unloaded when the reference to the ClassLoader object is gone and the garbage collector runs. If this is the case, can you simply load the dll in a thread, and then kill the thread to achieve the same effect without having to create a custom ClassLoader? Something like this: new Thread( new Runnable() { public void run() { System.load("dll"); } } ).start(); //Will load the dll, then there will be no references to the thread System.gc();

How to reduce QT program start-up time when using a DLL

梦想与她 提交于 2019-12-24 11:52:15
问题 My program relies on several DLLs during startup, including QtCore4.dll and QtGui4.dll from QT itself and ni488.dll from National Instruments. When I try using any of the functions in cbw32.dll (a 5 MB file found in the UniversalLibrary at http://www.mccdaq.com/software.aspx), my program suddenly takes 5+ seconds to start up, whereas previously it did so instantaneously. Is there anything I can do to reduce the time it takes to start up? For that matter, what is happening during that time, is