dll

Block Access mousewheel behavior in external ActiveX controls

In an Access (2002 / 2003) data-bound form, a turn of the mousewheel moves to the next/previous record, even if the cursor is inside a multiline text field or a listbox. This is a major annoyance to users and cannot be turned off easily. I recently discovered a DLL called MouseHook (http://www.lebans.com/mousewheelonoff.htm) which can e...

Calling two functions with the same name from two different C DLLs

I have two C DLLs that I need to access in the same executable. I have header files and .LIB files for both libraries. Unfortunately a subset of the functions that I need to access have the exact same names. The best solution I have been able to come up with so far is to use LoadLibrary to load one of the DLLs and explicitly call its met...

C# callback from DLL

I'm writing Application A and DLL B, both in C#.NET. How do I do the following: A calls function in B Want B to use delegate/callback to update status in UI of A This is not about BackgroundWorker...that part works fine in A. What I can't see is how to let B know what function to call in A. ...

Visual Studio 2008 .dll disappearing issues

Ok, so I have VS 2008 and SVN. When I "rebuild all" a handful of my .dll's disappear from my bin folder. I have these .dll's in a library folder and that's where I am referencing them from. When I go to publish the app the publish fails, I think they are related. When I reboot my web.config (change something and save) this error goes...

how dll created out of c++ source and how it is used in other sources?

how is dll created out of c++ source and how it is used in other source? ...

Can you register an ActiveX dll in Java programmatically?

I have a third-party ActiveX dll, and I'd like to register it programmatically at run time, if possible. Can this be done in Java? The application I'm working with is an Eclipse application on Windows XP. ...

Using mixed DLLs from /clr:pure projects

I'm building a project along with a Dll. The Dll must support native code so I declared it as a /clr. My project was initialy also a /clr project and everything was fine. However I'd like to include some NUnit testing so I had to switch my main project from /clr to /clr:pure. Everything still compiles but any Dll call generates a runti...

Finding Dll Function Parameters

How would one go about finding the parameters of an undocumented Dll function? I have searched all over the internet and have found one way involving decorated functions but I cannot find a way to get those. Any help would be appreciated. Thanks! ...

dllimport failed to locate dll even though it is in the PATH

I use [Dllimport("DllName.dll")] where I'm sure a path to my dll exists in the process PATH environment variable, and still I get "DllName.dll could not be found" ...

How to call a Delphi DLL from VB6

Given the following Delphil DLL declaration function csd_HandleData(aBuf: PChar; aLen: integer): integer; stdcall; what would be the VB6 declaration to use it? I've tried a variety of declarations, e.g. Declare Function csd_HandleData Lib "chsdet.dll" (ByVal aBuf As String, ByVal aLen As Integer) Declare Function csd_HandleData Lib ...

Monitoring application calls to DLL

In short: I want to monitor selected calls from an application to a DLL. We have an old VB6 application for which we lost the source code (the company wasn't using source control back then..). This application uses a 3rd party DLL. I want to use this DLL in a new C++ application. Unfortunately the DLL API is only partially documented, ...

.Net reference problem

I am writing an application using the Microsoft enterprise library. I wrote a wrapper dll for that enterprise library dll. I want to use my wrapper in some windows form application. The problem is that every time I want to use my wrapper I get an error in the compilation that says that a reference to the enterprise library dll is missing...

using a class defined in a c++ dll in c# code

I have a dll that was written in c++, I need to use this dll in my c# code. After searching I found that using P/Invoke would give me access to the function I need, but these functions are defined with in a class and use non-static private member variables. So I need to be able to create an instance of this class to properly use the func...

Can I use two incompatible versions of the same DLL in the same process?

I'm using two commercial libraries that are produced by the same vendor, called VendorLibA and VendorLibB. The libraries are distributed as many DLLs that depend on the compiler version (e.g. VC7, VC8). Both libraries depend on a another library, produced by this vendor, called VendorLibUtils and contained in one DLL. The problem: Vendo...

Python: packing an ip address as a ctype.c_ulong() for use with DLL

given the following code: import ctypes ip="192.168.1.1" thisdll = ctypes.cdll['aDLL'] thisdll.functionThatExpectsAnIP(ip) how can I correctly pack this for a DLL that expects it as a c_ulong datatype? I've tried using: ip_netFrmt = socket.inet_aton(ip) ip_netFrmt_c = ctypes.c_ulong(ip_netFrmt) however, the c_ulong() method ...

Python: converting strings for use with ctypes.c_void_p()

given a string: msg="hello world" How can I define this as a ctypes.c_void_p() data type? the following code yields a "cannot be converted to pointer" exception: data=ctypes.c_void_p(msg) data is required to be a void* type in C, because it is being passed to a DLL. I'm assuming there is a way to pack/unpack the string using the...

Do you have your own 'utils' dll and what do you keep there?

I can start with my own .NET dll. I have a dll I use in all my web projects (around 10) and I have util classes for FTP, zip, imageresizing, extensionmethods and a generic singleton class. I think it is a common practice and I just thought it would be interesting to hear what people put in their 'Utils' dlls EDIT: What small code gems ...

Asp.net DLL hell

I have a 3rd party workflow software (Captaris Teamplate) that's referencing an assembly from my project that's referencing other assemblies from our project solution all through GAC. When our app executes it invokes Captaris Teamplate method to create a workflow process which in turn uses project assemblies in GAC to store data into a ...

How can I use a .NET 2.0 dll in classic ASP?

I have a c# .NET DLL compiled against the .NET 2.0 framework. A customer uses classic ASP but needs the functionality of the .NET DLL. Is there a way for them to use the DLL? ...

add custom DLL search path @ application startup

I'm racking my brain trying to come up with an elegant solution to a DLL load problem. I have an application that statically links to other lib files which load DLLs. I'm not loading the DLLs directly. I'd like to have some DLLs in another folder other than the folder that the executable is in. Something like %working_folder%\dlls - I'd ...