dll

DLL Search Path only partially searched

I just set up a new faster computer to be my development station. I'm having a problem with a DLL not begin found when I run an application I'm working on using Delphi 6 Pro, but I don't think the problem is with Delphi. Keep in mind, I have the exact same setup as far as directories and tools on my old computer and on that computer th...

best solution to use a DLL/Driver?

Hi, Im working with a CD722UN Customer Display for our POS application. it comes with a USB2.0 connection and a installation package containing a driver ect.. now, for my application. how should i do when i want to access this driver? at the moment i'm using the "CD722UN application"s .dll path but that can warry from clients OS ect.....

Problems with data types from external dll

I use Philip's MfRc500.dll for communicating with RFID chips. It contains a function for reading data, which is defined like this: signed char Mf500PiccRead(unsigned char addr, unsigned char * data) I use it in VB.NET like this: Private Declare Function RFID_PiccRead Lib "MfRc500.dll" Alias "_Mf500PiccRead@8" (ByVal addr As UShort, B...

Error loading dll in path with parenthesis using ctypes (python)

Hello all! I am trying to access a dll located in the "c:/Program Files (x86)" folder in a 64-bits processor PC. If I use os.path.exists to check if the dll exists, I receive an afirmative answer: >>> print os.path.exists('c:/Program Files (x86)/Some Folder/SomeDll.dll') True But when I try to load the dll using ctypes, I get the fo...

Can distutils use a custom .def to expose extra symbols when it compiles a Windows .dll?

I'm abusing distutils to compile an extension module for Python, but rather than using the Python C API I'm using ctypes to talk to the resulting shared library. This works fine in Linux because it automatically exports all symbols in a shared library, but in Windows distutils provides a .def to export only the Python module init functi...

LoadLibrary() fails to load DLL with manifest and private assembly

I am working on a Windows application (EXE) that uses multiple DLLs. Development is in VCExpress 2005 (VC 8.0), using C only. Some of these DLLs are plug-ins/add-ons/extensions that are dynamically loaded using [LoadLibrary](http://msdn.microsoft.com/en-us/library/ms684175(VS.85).aspx) according to a configuration file read by the EXE....

Alternative solution to modifying XML file as embedded resource in .dll assembly

I need to create a .dll assembly to read contents of a xml file embedded as a resource and show the content on an ASP.NET page. I searched through the internet for solution to modify the xml file (which embedded as a resource in the .dll assembly) and found out that it's almost impossible to do so. Here's my scenario: 1. I created a .d...

Pointers in C# to Retrieve Reference From DllImport Function

I am referencing a DLL in my C# project as follows: [DllImport("FeeCalculation.dll", CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Ansi)] public static extern void FeeCalculation(string cin, string cout, string flimit, string frate, string fwindow, string fincrement, string fbird, ...

"Attempted to read or write protected memory. This is often an indication that other memory is corrupt" DllImporting C#

I am getting this weird error while trying to marshal data to my DLL function and back to the C# code. I don't see where I am passing null or reading invalid memory and this error is so vague. Any clues?? Code below: The FeeCalculation function is exported as follows in the DLL: extern "C" __declspec(dllexport) void __stdcall FeeCalc...

How to change a language of a third-party dll?

Hello. I have a hird-party dll that need to be installed alongside with my app. In order to create a correct installer, all .dll files must have a LANGUAGE defined. Unfortunately, this third-party dll don't have a LANGUAGE :(. Is it any way to set a language for it without a recompilation? Maybe some command-line tool in Microsoft SDK? ...

How to solve this MS runtime DLLs loader runtime error (R6034)

Here is my situation: I have a C project linking with many libraries (I haven't written this application), and it is shipped also with MSVCR71.dll and MSVCP71.dll. Even without those DLLs, the program has run fine on my system, which has MS VS2005 installed (indeed uses MSVCR80.dll and MSVCP80.dll). I've linked this application with ot...

Error Installing COM+ (Error Code: 80131501)

I've written a class library that reads from an xml file and return the result as a string. But when I want to install it as a COM+ component, an error occurred (Error Code: 80131501). I checked the event log and the details of the error is: Installation of 'C:\Users\User\Documents\Visual Studio 2005\Projects\InteropSOA\InteropSOA\bin\D...

Adding a .dll file to a jar

I have a third party library that comes with .dll files that I need in order to run my java jar file. How can I include them in my jar file when I deploy my application? (I am using JSmooth to create an exe file - if that helps anything) NOTE: I have looked at this stackoverflow question, but there's only one answer there, and I don't t...

JNA problem with char** (in dll)

Hi, ok it is 'easy' to make jna wrapper solution for mapping exported functions within dll using jna: long f1(int x), just int long f2(char* y), just char[] but how to deal with long f3(char** z) ? I need f3's result(long) as well as z value on java side. Please don't say cpp code should be rewritten to avoid this:-) ...

.Net Dynamically Load DLL

I am trying to write some code that will allow me to dynamically load DLLs into my application, depending on an application setting. The idea is that the database to be accessed is set in the application settings and then this loads the appropriate DLL and assigns it to an instance of an interface for my application to access. This is m...

Calling member level functions from a dynamic link library using pinvoke in C#?

How would I use DLLImport pinvoke to invoke a function i wrote in a class in an unmanaged DLL? It always throws that the entry point doesn't exist in the dll. EX: class Foo { int __declspec(dllexport) Bar() {return 0;} }; Bar is in the Foo class. when I use pinvoke as: [DLLImport("Test.dll")] public static extern int Bar(); When ...

Programmatically add user role to COM+ component (C#)

I wish to know the way to add ASP.NET ("Machine_Name"\IIS_IUSRS) to user role in COM+ component programmatically using C#. So whenever my COM+ component is being installed, ASP.NET user is created under Role. ...

System.AccessViolationException when calling C++ from C#

Hello, I don't know why but today myOpenID doesn't seem to work. Anyway ... I have this problem: I have a unmanaged C++ library (DLL) which I have to embed in an existing C# project. Now ... I have created a mini-wrapper (DLL) in managed C++ which calls the library so that I can load it from the C# code and, when I try it from a command-...

Change Dll Folder In Visual Studio 2008 C#

I have 2 projects in my solution. The first one is a console application, and the second is a dll, used (referenced) by the console. When I build my solution (release) I get one EXE file and one DLL file, because "copy local" is true (if I set it to false, it doesn't run) How can I store that DLL file in a subdirectory? If my output fol...

ParentWindow in a DLL

I'm trying to assign a ParentWindow, to a control created in a dll. The control is an editor, I need to process a text file, but this control requires a ParentWindow. How can I solve this problem, if I create this control in a dll? I'm using Delphi 5. ...