dll

Multiple decorated/mangled versions from the same function in a single library

我与影子孤独终老i 提交于 2019-12-24 15:19:11
问题 When you dump the external symbols of a library, you may find there are multiple versions of the same function name; such as the case with printf function from the C library, you will find names like __imp__printf _printf ___imp___printf_l Why there is no just one version of the function? When I tried to see which OBJ member in the library they are belong to, I found that they all belong to the same OBJ file (an import library) that have only one version, which is _printf , and this is the

Add DLL reference to visual studio macros

不想你离开。 提交于 2019-12-24 15:09:56
问题 I need to create a lot of macros in visual studio the probelem is I do not know visual basic that good. What I have been doing so far is: Create the algorithm "Code" I plan to use on C# on a console application. I complile it then decomplite it with reflector into visual basic. When I decompile the code I lose the comments plus sometimes I have to refer back to the code and it becomes hard to manage. I am tired of compiling and decompiling plus I have to make a few twick every now and then. I

VBA importing COM-registered dll and calling constructor with arguments

青春壹個敷衍的年華 提交于 2019-12-24 14:44:26
问题 Is it possible to reference a COM-registered DLL and then create objects that require arguments in the constructor in VBA code? I'm successfully referenced the tlb in Access 2013 (64-bit) that was registered with regasm , and I've managed to create a simple object that doesn't need arguments in the constructor. From what I read, it is not. Do I now face major refactoring? 回答1: It doesn't have to be "major". You simply need a factory method, one that takes all the arguments you need to

Ideal way to include headers from a DLL?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-24 14:40:09
问题 I've been testing things with multiple project setups where a console application accesses functions from several DLLs. I thought about how to include the DLLs' headers in the console application. My current implementation is as follows but it's being a headache to manage and even sometimes runs into errors: Each DLL project has a folder called "Include" The Console application project references the Include folder of each DLL project (as suggested by msdn guide to working with DLLs) Each DLL

JNA and Winscard: Reading attributes (SCardGetAttrib) without card

房东的猫 提交于 2019-12-24 14:22:08
问题 I have problems to read out reader attributes (like SCARD_ATTR_VENDOR_IFD_SERIAL_NO), without a card present on the reader though setting the parameter dwShareMode of the function SCardConnect to SCARD_SHARE_DIRECT. What is going wrong? This is the Code: NativeLong res; IntBuffer b = IntBuffer.allocate(1024); NativeLongByReference phContext = new NativeLongByReference(); LongByReference phCard = new LongByReference(); res = Winscard.INSTANCE.SCardEstablishContext(SCARD_SCOPE_USER, null, null,

Failure to register .dll with regsvr32 - only in Release build

萝らか妹 提交于 2019-12-24 14:19:07
问题 I'm having a weird problem when trying to register the .dll i created using regsvr32. During development everything went fine, the debug version registers and works fine. Now i wanted to create a Release version, but that Version does not register anymore. regsvr32 comes up with the following error: The module "mpegsplitter.dll" failed to load. Make sure the binary is stored at the specified path or debug it to check for problems with the binary or dependent .DLL files. The specified

Passing a path to Labview DLL in Python

不想你离开。 提交于 2019-12-24 14:13:12
问题 I am starting here with my question, but realize it might need to be answered on the Labview forums. So, I have a DLL that was created in Labview, and I am accessing it via Python 3.3.3. I know that I am accessing it correctly, as I am able to access several of the functions already. However, I am having an issue when I try to pass a path to a file that I am running into issues. Here is the function call details from the .h file, that was created when the DLL was created: /*! * ClockInit */

“DLL caused an exception” when calling a method that references another DLL

我与影子孤独终老i 提交于 2019-12-24 14:07:50
问题 I developed a DLL, let's call it DomainLogic.dll , with some public methods through [DllExport] annotation. Some of those methods make calls to another DLL, let's call it Utils.dll . I developed a demo WinForm application with some buttons that call methods of DomainLogic.dll and everything works as expected. Currently we have a partner which wants to call our DomainLogic.dll from their existing Visual FoxPro application. They were able to successfully call dll methods that receive and return

Delphi-to-C dll: Passing Arrays

故事扮演 提交于 2019-12-24 14:07:16
问题 I'm using Delphi to load a dll (that I created in Delphi XE-3) for the purposes of interfacing with some C code. My problem is figuring out why my arrays aren't being passed to the c functions - they're the only ones not to. The delphi file (simplified) looks like this: program CallcCode uses SysUtils, Windows, DLLUnit in 'DLLUnit.pas'; // Header conversion var DLLHandle: cardinal; n: Integer; A: TArray<Integer>; result1: Integer; begin // Initialize each Array SetLength(A,n); A[0] = ...; //

Does symbol capitalization matter in object files with a linked dll?

烂漫一生 提交于 2019-12-24 13:52:47
问题 I'm trying to get the gfortran compiler working in MATLAB on Windows to create mex files. Gfortran isn't supported, but the Intel Fortran compiler is, which leads me to believe that a Fortran compiler should be able to compile Fortran source using MATLAB libraries. As detailed in my previous question, I get an "undefined reference" error for every symbol that should come from the MATLAB libraries. I thought this was an error with the preprocessor not getting invoked as suggested in a question