dll

DLL EXE Hybrid C++ Windows

I am currently working with DLL injection and need to have a single hybrid binary that could act as both an executable and a DLL. I thought of maybe writing a DllMain and WinMain function and then compiling it as an executable but I don't know what would happen if I did that. I know that it is posssible to combine a dll and exe by using ...

System.DllNotFoundException: Unable to load DLL on window 2003

Hi all, I have c++ dll using in my c# project, It ran fine on my window xp machine, but when i copy my debug project on window 2003 server (x64), i received error below, can any one tell me what is this problem, and how can i fix it. Thanks "System.DllNotFoundException: Unable to load DLL 'lib.dll': This application has failed to star...

How can I obfuscate code from a program made of various DLL?

Under VS2008, I'm working on a solution containing various DLL project. Is it possible to obfuscate the whole code? ...

Dynamically changing the DLL in .NET

I am trying to find a solution for dynamically loading the updated dll from a folder or database in a winform (C#.NET) application. Suppose I have an exe (say MainApplication.exe), which will act as a wrapper/container for the real business logic. The business logic will sit inside the assembly (say Business.dll). Now, how would I dynam...

How to refresh applicationSettings in a dll

Can i force a dll to reload it's configuration? In my VB library I'm using this configuration: <applicationSettings> <ComWrapper.My.MySettings> <setting name="MySetting" serializeAs="String"> <value>This is an entry</value> </setting> </applicationSettings> It's no problem to access the "MySetting" val...

DLL redirection using manifests

Hi, I need to reliably redirect an applications look up of a specific DLL. Using the app.exe.local approach does not work because local files are ignored if the application has a manifest (embedded or separate file). So I am trying to do DLL redirection by defining the DLL as a private assembly in the manifests. I have a test applicati...

Resource leaks when using a VCL (C++Builder) DLL from .NET

I have a DLL that's written in C++Builder (2006), and I'm invoking a single function in the DLL from a .NET application. The problem is, when I close the .NET application (and the DLL gets detached from it) I get a CodeGuard error saying that it detected resource leaks (and I see the leaks in the CodeGuard log file). I also see the Loa...

Loading a dll that depends on other dll ..?

What happens when I load some dll at run-time (let's call it Lib1.dll) but Lib1.dll also depends on Lib2.dll but Lib2.dll is not there? ...

Calling any dll function based on variable arguments

I have the following items in a structure - Dll name (absolute/relative path) - Function name in the dll - number of parameters - Array of parameter types and values With these information, I need to load the dll and call the function. To load the dll - I would use loadlibrary To get the address of the function - I would use GetProcAdd...

Differences in OCX and DLL exception handling?

I know a (vc++) ocx is an ActiveX control, and a (vc++) dll is a collection of functions. I've found that being called from a vb.net application, the catching of some exceptions could behave differently if the exception is being thrown from inside the ocx or inside a function that comes in a dll. So my question is: From a point of view ...

Using Templated Classes and Functions in a Shared Object/DLL

I am working on a fairly significantly-sized project which spans many shared libraries. We also have significant reliance on the STL, Boost and our own template classes and functions. Many exported classes contain template members and exported functions contain template parameters. Here is a stripped-down example of how I do library e...

Linking 64bit DLL to Visual Basic 6

I'm working on a project that is using a DLL written in C that has both 32bit and 64bit compiles of the DLL for multiple reasons. The main application is written in Visual Basic 6. The component that brings in the functionality of the C DLL is a class within Visual Basic 6 that contains a module full of Public Declare Functions to the DL...

Delphi - Help calling threaded dll function from another thread

I'm using Delphi 2006 and have a bit of a problem with an application I'm developing. I have a form that creates a thread which calls a function that performs a lengthy operation, lets call it LengthyProcess. Inside the LengthyProcess function we also call several Dll functions which also create threads of their own. The problem that I...

DLL Dependancies

I have an C# library file that uses a web-service reference in it. I have referenced Microsoft SOAP type library v3.0 and use Visual studio 2008. When I create a set up project, I get an error that says mssoap30.dll and msxml4.dll have dependancies that have not been determined automatically and the set up procedure fails. What is the r...

Inno Setup: uninstall process can't remove MSIMG32.DLL from {app} folder whatever I do.

What kind of magic has this 'MSIMG32.DLL'? Why can't inno setup delete it? Edit: this file was just added to {app} using [File] section, at the end of uninstall I get the message "Some elements could not be removed. These can be removed manually." what is referred to MSIMG32.DLL exactly. ...

Visual Studio: how to set path to dll?

I developed an application that depends on a dll. When I debug my app, the app would complain that "This application has failed to start because xxx.dll was not found." So what I have to do is to copy the dll into the same directory as my .vcproj. Is there a way to set the project to look for the dll in (preferably) some relative path ...

switch DLL based on environment - .net

I want to release a DLL that contains some classes for other developers to use. Behind these classes are another DLL that contatain referenced functionality. In the development environment I want this backend DLL to have development oriented functions, but when the code is migrated to the production environment, I want that backend DLL...

how to build dll files in netbeans using ms vc++ compiler ?

i tried using cygwin gcc compiler along with netbeans to create dll files it seems there is an issue in the generated dll file. if i use the ms vc++ compiler and do all compiling on command line its runs file, but i dont know how to integrate ms vc++ tools in netbeans ... can anyone help me on that ? thanks jay ...

Creating dll from cpp files with nmake.

Hi. There is a problem: i need to compile the dll from all source *.cpp files in a particular folder with a help of nmake. For example, cpp files stored in the folder ".\src", and they must be compiled into one dll. Where i can read about nmake? Or some examples? ...

how can i use Dll function in qt

how can i use this dll function?: extern "C"__declspec(dllexport) void __cdecl InvertRawPic(unsigned char *In, unsigned char *Out, unsigned int rows, unsigned int cols); in QT. This function is to invert images. ...