dll

Why does this window subclassing code crash?

I am trying to subclass the window that currently has focus. I do this by monitoring for HCBT_ACTIVATE events using a CBT hook, and set and unset the WndProc of the focused and previously focused windows. The problem is that it only works whenever I have a breakpoint set somewhere in the code. If there is no breakpoint, once my applic...

What is the preferred way to load a DLL on an Eclipse RCP plugin?

I have an Eclipse RCP plugin that requires a DLL. What is the recommended best practice to add the DLL reference to the MANIFEST? Where should the DLL be located, what is the recommended directory name? I have read conflicting practices. Some ask you to create a folder with the architecture and processor type, some ask to set some pla...

win32:libs undefined reference

I want to link a .lib in my Qt project and I get an error about an undefined reference to vhtIOConn::getDefault(vhtIOConn::DeviceType). I have already added the following specifications to the .pro file: ###################################################################### # Automatically generated by qmake (2.01a) vie 28. ago 12:48:1...

using a DLL in a .NET applications

i want to add a class library to my project in C# 2008 and that class library is a wrapper for a C++ library. i added the reference to the .NET wrapper and it says io.notfind exception. i copied C++ DLLs to my project and again it says file not find exception. what can i do to fix this? the original C++ libraries where 2 DLLS that has li...

Using delphi application's memory manager in a delphi DLL (without recompiling the application)

I need to write a DLL (using Delphi) which is dynamically loaded into delphi applications and makes RTTI queries (typical operation is to obtain string values for control properties). The classic problem is that passing strings (and objects) between application and DLL is problematic due to different memory managers used in both (this mi...

Moving entry point to DLL in a WinForm app

I am trying to figure out a way to pre-process few things before my WinForm app loads. I tried putting static void Main() in a form within a class library project and commented it out from Program.cs. Which generated a compile time error: "...does not contain a static 'Main' method suitable for an entry point". It makes sense since the p...

Deploy system DLL inside CAB file

I’m looking for a way to deploy a system DLL within my ActiveX CAB file. CAB cannot update system file and whole installation fails. Perfectly, I would like to copy the DLL into ActiveX installation folder. My best suggestion (I didn’t try it yet) is using INF file hooks with some standalone installer, but I wonder is there another way...

C Runtime Library Version Compatibility: updates require rebuilds?

How do you construct a library (static lib or a dll/so) so that it isn't sensitive to future updates to the system's C runtime librarires? At the end of July, Microsoft updated a bunch of libraries, including the C runtime libraries. Our app is written with a mix of MFC/C++/VB and some third party libraries, including some that are clos...

calling vb dll in python

So I have a function in vb that is converted to a dll that I want to use in python. However trying to use it, I get an error message this is the VB function Function DISPLAYNAME(Name) MsgBox ("Hello " & Name & "!") End Function and this is how I call it in python from ctypes import * test = windll.TestDLL print test print test.DISPL...

Does 64-bit Windows use KERNEL64?

I was looking at some libraries with dumpbin and I noticed that all the 64-bit versions were linked to KERNEL32. Is there no KERNEL64 on 64-bit Windows? If not, why? All my operating systems are 32-bit so I can't just look. A google search brings up nothing worthwhile so I suspect that there is no KERNEL64 but I'm still curious as to...

returning real values from fortran77 dll to c#

Can somebody please point out what I'm doing wrong here? FORTRAN 77 dll code *$pragma aux DON "DON" export parm(value*8,value*8) SUBROUTINE DON(DAA,DBB,DCC) REAL*8, DAA,DBB,DCC DBB=DAA+1 DCC=DBB+1 RETURN END C# code using System; using System.Collections.Generic; using System.Linq; using S...

Change the dll dependency on windows.

I have to rename some dlls which are used by some xyz.dll. For xyz.dll I don't have the source code is there a way to change xyz.dll to point to renamed dlls, For DYlibs on Mac I used Install_name_tool. For windows still looking for something, Please suggest. ...

Best way to check if a dll is an clr assembly in C#

What is the best way to check if a dll is a win32 dll or if it is a clr assembly. At the moment I use this code try { this.currentWorkingDirectory = Path.GetDirectoryName(assemblyPath); //try to load the assembly assembly = Assembly.LoadFile(assemblyPath); return assembly...

How to fix Java JNI DLL dependencies

Hi, I have a Java Application which has to load an DLL with a few dependencies. I copied all required DLLs in the same folder. The DLL I was set up uses the SeeingMachine FaceApi libraries. Now when I'm starting the Java application I will get an error the my DLL can't find the dependencies: Exception in thread "main" java.lang.Unsatis...

Why can't I add Shared Binaries to TFS 2008 Source Control?

Hi all, I have 2 TFS projects on the same server (ProjectA and ProjectB). Both have the following structure... $/ProjectName/Dev/Source/ApplicationName/ $/ProjectName/Dev/Source/SharedBinaries/ In ProjectA I can drag dlls into the ShareBinaries directory. In ProjectB, however, I cannot. TFS presents me with the 'Add to Source Contro...

Build a DLL (without entry point) from the command line with MSVC.

Hi, I want to use MSVC compiler to build a DLL file. The problem is that the DLL doesn't have a main entry point. It's supposed to be a shared DLL used as a plug-in by an application. I can compile it using GCC this way: gcc -c plugin.c gcc -shared -o plugin.dll plugin.o interface.def The DEF file is to evade name mangling in a functi...

Unable to add a DLL Reference to VS 2008

Hi, I wonder if someone can help me. I'm trying to add a reference to the LAME MP3 encoder in my VB.Net (3.5) App. The DLL I'm using (lame_enc.dll v3.98.2) was downloaded from here: http://rarewares.org/mp3-lame-bundle.php When I try to add the DLL reference to my project, I get an error: "A reference to C:\\Lame_Enc.dll could not be ...

How to call C# .dll from a C++/CLI application?

I'm trying to call the LumenWorks .csv file reading library from a C++/CLI application and having some issues. I've added a dependancy on LumenWorks.Framework.IO.dll but when I try to then use the library: namespace MyNamespace { using namespace Lumenworks::Framework::IO::Csv; // <My code definitions here> } I get a message ...

I keep hearing about DLL hell - what is this?

Simple question but I keep hearing about DLL hell - what is this all about? Thanks, MarcoPolo ...

How I do a sign an assembly that has already been built into a dll specifically flute.dll

The reason I want to sign the dll is because I want to add it to the Global Assembly Cache. The assembly is a css parsing engine written in Java and ported to J#. I use VS2008 so I can't make J# projects. It doesn't have a strong name key assigned to it and I have no idea how to do it now that it's built. Anyone have any ideas? ...